I am trying to create a repository to host all of my npm packages.
This repository's structure is quite common as far as I've seen, containing a packages folder with multiple folders in it, each representing a package.
I have all of this set up and I can do npm run build from the root folder (root of packages folder) and I am getting the build output into a dist folder in each package's folder.
The question now is - how do I publish correctly?
I am publishing to github registry using the npm publish command, and it technically works, but the files being published aren't correct - it publishes a mix of typescript and javascript instead of just the javascript in the dist folder, and when I try to import one of my packages in a project's code it doesn't work... (it installs it but won't let me import from it)
Any help is appreciated 🙂
#Help with packages monorepo
3 messages · Page 1 of 1 (latest)