https://pulumi.com logo
#general
Title
# general
s

square-ability-48831

06/20/2019, 12:14 AM
curious if there’s a pulumi config that i need to pass in order to rename the
index.ts
file to
infra.ts
. changed in
tsconfig.json
and
pulumi up
can’t find it now.
w

white-balloon-205

06/20/2019, 12:35 AM
You can set the
package.json
main
property to define the file Node.js will use as the entry point for the package. If you need your
Pulumi.yaml
file to live somewhere other than where your
package.json
lives - you can use
main:
in the Pulumi.yaml to indeicate where the
package.json
for the Node.js package to load can be found. The latter is documented at https://pulumi.io/reference/project/. The former is alluded to in https://pulumi.io/reference/javascript/ but we could definitely make that clearer.
s

square-ability-48831

06/20/2019, 1:17 AM
thanks!
doh on the package.json
main
should have known that
goal is to sort of isolate infra code from src code of the actual project, but not sure that’s the best approach yet since they are beginning to merge together 🙂