Skip to content
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

isDevelopingAddon is mistakenly turned on in npm v0.21.3 #383

Closed
justin-lau opened this issue Nov 4, 2015 · 7 comments
Closed

isDevelopingAddon is mistakenly turned on in npm v0.21.3 #383

justin-lau opened this issue Nov 4, 2015 · 7 comments

Comments

@justin-lau
Copy link

It triggers eslint in parent project when set to true as described in ember-cli/ember-cli-eslint#14. And that option is supposed to be turned on in development only.

@justin-lau
Copy link
Author

I found the following lines appears only on npm repository when I install with npm install liquid-fire:

// index.js
isDevelopingAddon: function() {
    return true;
},

but not on the github repository if I install with npm install ef4/liquid-fire#v0.21.3.

It appears that the option is only turned on in v0.21.3 on npm repository. v0.21.2 doesn't have it either.

@justin-lau justin-lau changed the title isDevelopingAddon should not be turned on in releases. isDevelopingAddon is mistakenly turned on in npm v0.21.3 Nov 4, 2015
@runspired
Copy link

I've fallen victim to this too recently, npm publish pulls your current branch and state, including uncommitted changes. I usually have it set to true and stash when releasing, if I haven't stashed it shows up in npm.

@justin-lau
Copy link
Author

I have fallen before too. I now write pre-publish scripts npm in my package.json to lint and test everything before actually uploading to npm. Similar tricks can be applied to prevent this from happening again =)

@ef4
Copy link
Collaborator

ef4 commented Nov 4, 2015

Thanks, this explains some otherwise confusing bug reports lately.

@brzpegasus
Copy link

@ef4 Do you plan on publishing a new version to npm anytime soon? This is also causing any projects that use both liquid-fire and ember-suave to get a bunch of warnings/failing tests because ember-suave ends up linting the liquid-fire modules as a result of isDevelopingAddon returning true.

@runspired
Copy link

@brzpegasus you could probably install directly from the github tag instead of npm and avoid the issue for now.

@winne42
Copy link

winne42 commented Sep 14, 2020

@ef4 I suppose this issue has been fixed in every version since? So this issue could be closed? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants