You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a use case where we want to bundle up the types of a private package into a subdirectory with a cloned package.json and publish that to npm.
The problem is that even though the cloned nested package.json is not set to private, because the root package.json is private the publish task is skipped.
Steps to reproduce
Create a package with the following file structure:
@lukeggchapman According to your root package.json, it is really not allowed to be published. You can try npm publish dist directly in the root folder. np should keep the same behavior with npm.
If npm works, feel free to remind me to reopen this issue.
@chinesedfannpm publish dist works from the root.
Right now I'm having to follow the np command with npm publish dist so it's not a huge issue. I'd just prefer that np handles it.
Happy to help add this too, just wanted to get a feel for what your thoughts are here before I start trying to solve it.
Description
We have a use case where we want to bundle up the types of a private package into a subdirectory with a cloned package.json and publish that to npm.
The problem is that even though the cloned nested package.json is not set to private, because the root package.json is private the publish task is skipped.
Steps to reproduce
np --contents=dist
from root dir.Expected behavior
The package in the subdirectory will be published.
Environment
np - 5.2.1
Node.js - 12.7.0
npm - 6.10.0
Git - 2.20.1
OS - OSX 10.14.6
The text was updated successfully, but these errors were encountered: