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

full-dress-10026

05/30/2019, 5:40 PM
If I want to store my Typescript files in a
src
directory in my Pulumi project, how would I do that? I tried just moving them all into a
src
dir and adding this to my `tsconfig.json`:
Copy code
"files": [
        "src/index.ts"
    ]
When running
pulumi up
, I get:
Copy code
We failed to locate the entry point for your program: /home/kenny/compute_software/infrastructure/pulumi-k8s-src
    Here's what we think went wrong:
      * Your program's 'main' file (/home/kenny/compute_software/infrastructure/pulumi-k8s-src/index.js) does not exist.
f

fierce-dinner-20116

05/30/2019, 5:44 PM
@full-dress-10026 https://pulumi.io/reference/project/#pulumi-yaml I think you can set
main: src/
in your
Pulumi.yaml
6 Views