Skip to content

Commit

Permalink
Fix cdk package
Browse files Browse the repository at this point in the history
  • Loading branch information
salahzsh committed Sep 6, 2023
1 parent 34fb6b1 commit 749f399
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
7 changes: 2 additions & 5 deletions cdk.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"app": "node ./lib/stack.js",
"context": {
"@aws-cdk/core:enableStackNameDuplicates": "true",
"aws-cdk:enableDiffNoFail": "true"
}
}
"context": {}
}
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@types/node": "^20.5.9",
"@typescript-eslint/parser": "^6.6.0",
"@vercel/ncc": "^0.36.1",
"aws-cdk": "^2.94.0",
"eslint": "^8.48.0",
"eslint-plugin-github": "^4.10.0",
"eslint-plugin-jest": "^27.2.3",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function execCDK(args: string, env: { [name: string]: string }): void {
execSync(
`(cd ${removeLastDir(__dirname)} && PATH="${removeLastDir(
process.execPath,
)}:$PATH" node node_modules/aws-cdk-lib/index.js ${args})`,
)}:$PATH" node node_modules/aws-cdk/bin/cdk.js ${args})`,
{
env,
},
Expand Down

0 comments on commit 749f399

Please sign in to comment.