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

fast-motherboard-21624

07/18/2019, 4:36 AM
?
w

white-balloon-205

07/18/2019, 4:53 AM
Have you set things up the same way as
pulumi new
does? Or are you using a custom layout? Can you share the
tsconfig.json
and
package.json
files you are using?
f

fast-motherboard-21624

07/18/2019, 6:39 AM
yeah normal `pulumi new`:
Copy code
{{
  "compilerOptions": {
    "outDir": "bin",
    "target": "es6",
    "lib": ["es6"],
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": true,
    "experimentalDecorators": true,
    "pretty": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitAny": false,
    "noImplicitReturns": true,
    "forceConsistentCasingInFileNames": true,
    "strictNullChecks": true,
    "allowSyntheticDefaultImports": true
  },
  "files": ["index.ts"]
}
Copy code
{
  "name": "aws-typescript",
  "devDependencies": {
    "@types/node": "latest"
  },
  "types": "global.d.ts",
  "dependencies": {
    "@octokit/rest": "^16.28.4",
    "@pulumi/aws": "latest",
    "@pulumi/aws-serverless": "^0.15.1",
    "@pulumi/awsx": "latest",
    "@pulumi/cloud": "^0.18.1",
    "@pulumi/cloud-aws": "^0.18.1",
    "@pulumi/pulumi": "latest",
    "github-app": "^4.0.1",
    "jsonwebtoken": "^8.5.1"
  }
}
my definitions are in
global.d.ts
at my project root
i could put together a sample repo if that's easier