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

glamorous-printer-66548

09/21/2018, 12:33 AM
hey folks, we have a few node.js apps which have their own package.json in the repository root, hence we cannot / don’t want to convolute the apps’ package.json with the package.json of the pulumi code. Hence I opted to move the pulumi code incl. configs into an
infra
subdirectory. However It’d like to keep the
Pulumi.yaml
in the repo root to be able to run pulumi CLI commands in the repo root. However it seems pulumi assumes the package.json to be in the same directory as the Pulumi.yaml and if that’s not the case it crashes with a bunch of errors. Is there a way to specify in the Pulumi.yaml a custom location of the package.json? Also is there some general docs / schema reference for the Pulumi.yaml ?
m

microscopic-florist-22719

09/21/2018, 12:33 AM
Is there a way to specify in the Pulumi.yaml a custom location of the package.json?
Yep! You can set the
main
property to the relative path of the directory that contains your Pulumi program.
👍 1
Also is there some general docs / schema reference for the Pulumi.yaml ?
https://pulumi.io/reference/project.html
That's not terribly discoverable, though, and we should do better here.
g

glamorous-printer-66548

09/21/2018, 12:37 AM
Works, thanks! Yeah I didn’t find it because i was searching for “Reference” and “Pulumi.yaml” instead of “Concepts” and “Projects” 🙂