I'm trying to publish a package to npm and for some reason the .js I've defined in the package.json isn't included with the package. My project is written in typescript and I transpile via the following npm script...
"prepublishOnly": "tsc -p ./ --outDir dist/"
Which correctly outputs the file I expect to dist/app.js locally. I then do an npm publish and the readme.md and some other files are published, but not the app.js I expect to be. The package.json has the main set as dist/app.js so what am I missing here?
This is my first npm package publish, so it's probably something stupid, happy to try any ideas.