famous-jelly-72366
06/02/2020, 3:39 PMwhite-balloon-205
how exactly is the typescript compile triggered?Pulumi uses
ts-node
(https://www.npmjs.com/package/ts-node) by default to compile files on the fly as they are `require`d by Node.js.
You can disable this - or just pre-compile your TypeScript to JavaScript and point at a JavaScript entrypoint.
See https://www.pulumi.com/docs/intro/languages/javascript/#disabling-built-in-typescript-support.
Is there any way to further configure, e.g. a script in package.json?I believe you would need to take over the compilation process yourself to support this. There is currently no way for
pulumi up
to invoke your build in this case though, so you would need separate "build" and "deploy" steps.
still looking for best way to deal with referenced projectsWhat exactly is the issue with referenced projects?
famous-jelly-72366
06/02/2020, 5:55 PMpulumi up
without worrying about having referenced projects (e.g. common) build manuallywhite-balloon-205
famous-jelly-72366
06/03/2020, 6:42 AMtsc -b
pulumi up
and it would automatically also compile any needed dependency projects