Skip to content

Release: set version in source for releases #2981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

timmywil
Copy link
Member

@timmywil timmywil commented Mar 9, 2016

Fixes gh-2979

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @markelog, @scottgonzalez and @jeresig to be potential reviewers

@mgol
Copy link
Member

mgol commented Mar 9, 2016

Could you also replace @DATE?

EDIT: although, since it's not used in AMD mode, maybe we should just not publish that file to npm/bower?

@@ -1,3 +1,4 @@
var fs = require( "fs" );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks inconsistent, other requires in the module.exports scope

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I make a distinction between modules that should be required when the exported function is called and ones that don't need to be.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels very specific as "gotcha" style rule i.e. hard to follow, don't recall we do this in anywhere else.

@timmywil
Copy link
Member Author

@mgol I think it's okay to publish files that aren't used. If anyone tries to use wrapper.js, they'll find out quick it doesn't work, but I doubt anyone will actually try that. I don't mind leaving it out, but not copying it would mean switching to a list of all of the files in the src folder, rather than just copying the src folder (at least for bower), and I'd rather not do that.

@mgol
Copy link
Member

mgol commented Mar 10, 2016

I don't mind leaving it out, but not copying it would mean switching to a list of all of the files in the src folder, rather than just copying the src folder (at least for bower), and I'd rather not do that.

You could use glob patterns & negate this one file out without major changes. But I don't insist. ;)

So, are you for leaving it inside the published package with the non-replaced @DATE?

@timmywil
Copy link
Member Author

So, are you for leaving it inside the published package with the non-replaced @Date?

For now, I'd be open to a later patch excluding the file, but it's not high priority.

@timmywil timmywil closed this in 0f5f0c9 Mar 14, 2016
@timmywil timmywil deleted the src-version branch March 14, 2016 14:37
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants