-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
contents flag does not get respected in latest version #551
Comments
On further investigation, it looks like |
@sindresorhus , i suggest we change the readme sligthly to stress this is the use case. I can see where the confusion could arise, I had the same doubt when i first started looking into the issue. |
Thanks for the feedback. |
|
I'm not sure how to make I suppose the alternative is to use |
@twelve17 I am also experiencing this case, I'm almost certain it's an oversight on my end. Did you manage to find a solution? |
Description
When specifying the contents flag like
np --contents=./../../ --preview"
it seems to be ignored.This may be caused by my setup but I am not sure because using
npm publish ./../../ --dry-run
does what I expect.My project has a dependency called vl-ui-util that has a package.json
containing an npm run script that calls np. When calling np in the parent project, np will try and publish vl-ui-util instead of the parent project. According to the documentation, this can be fixed using the
--contents
flag, however, this seems to fail.Steps to reproduce
np --contents=./../../ --preview"
(Script X)Expected behavior
Np wizard starts and tries to release project A.
Environment
np - 6.3.0
Node.js - 13.12.0
npm - 6.14.5
Git - 2.15.0
OS - OSX Catalina 10.15.5
The text was updated successfully, but these errors were encountered: