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
When publishing my library, the version is set on the top-level package.json, not the project's package.json. Am I not supposed to be running this from the root of the package? The top-level package.json has "private": true on it.
Steps to reproduce
yarn build (builds ./projects/my-module and writes to ./dist directory)
yarn ng publish patch
It seems to be publishing the dist folder, but the version change applies to the wrong package.json file.
It's also thus setting the new version after having built the library and writing to dist, so what gets written up into npm doesn't have the correct version.
Expected behavior
I would expect the publish command to update the version, then build, then publish.
Environment
np - 7.6.2
Node.js - 16.16.0
yarn - 1.1.25
Git - 2.37.0.windows.1
OS - Windows 10
The text was updated successfully, but these errors were encountered:
It's not really a monorepo, it's just an angular library. Following Angular's instructions for libraries it gets created in that projects area. Suggestions on what to do?
I can't use yarn 2. I tried 2 and even 3 a few weeks ago, but it causes tons of other issues when using ng commands from Angular so I finally had to go back to version 1.
Description
When publishing my library, the version is set on the top-level package.json, not the project's package.json. Am I not supposed to be running this from the root of the package? The top-level package.json has
"private": true
on it.Steps to reproduce
./projects/my-module
and writes to./dist
directory)It seems to be publishing the dist folder, but the version change applies to the wrong package.json file.
It's also thus setting the new version after having built the library and writing to dist, so what gets written up into npm doesn't have the correct version.
Expected behavior
I would expect the publish command to update the version, then build, then publish.
Environment
np - 7.6.2
Node.js - 16.16.0
yarn - 1.1.25
Git - 2.37.0.windows.1
OS - Windows 10
The text was updated successfully, but these errors were encountered: