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.
./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.
I would expect the publish command to update the version, then build, then publish.
np - 7.6.2
Node.js - 16.16.0
yarn - 1.1.25
Git - 2.37.0.windows.1
OS - Windows 10
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too