https://pulumi.com logo
Title
l

little-cartoon-10569

10/26/2022, 5:45 AM
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

great-sunset-355

11/09/2022, 2:57 PM
I'd use
tsconfig.json
instead of
package.json