Is there a way to set up package.json and tsconfig...
# typescript
l
Is there a way to set up package.json and tsconfig.json to allow a single repo be a Pulumi project (root dir) and an NPM package (when some interfaces etc. are built into /dist)? The best I'm getting is to use a separate tsconfig.release.json to change the outDir (so that normally I'm not putting anything in /dist), but I can't figure out how to make /dist be the root dir of the package. I've set
"publishPath": "dist"
in my package.json, but I'm still getting all my files in /dist/..., and there's no /index.js to handle default imports, etc... 😞
g
I'd use
tsconfig.json
instead of
package.json