Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit 488cfd1

Browse files
author
true
committed
fix(cdk): include tsconfig.json in npm deployment
1 parent b4d2951 commit 488cfd1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

cdk/tsconfig.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2018",
4+
"module": "commonjs",
5+
"lib": ["es2018"],
6+
"declaration": true,
7+
"strict": true,
8+
"noImplicitAny": true,
9+
"strictNullChecks": true,
10+
"noImplicitThis": true,
11+
"alwaysStrict": true,
12+
"noUnusedLocals": false,
13+
"noUnusedParameters": false,
14+
"noImplicitReturns": true,
15+
"noFallthroughCasesInSwitch": false,
16+
"inlineSourceMap": true,
17+
"inlineSources": true,
18+
"experimentalDecorators": true,
19+
"strictPropertyInitialization": false,
20+
"typeRoots": ["./node_modules/@types"]
21+
},
22+
"exclude": ["cdk.out"]
23+
}

lib/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ program
7777
.command('deploy')
7878
.description('Deploy Next application via CDK')
7979
.option('--stackName <name>', 'Name of the stack to be deployed.', 'StandaloneNextjsStack-Temporary')
80-
.option('--tsconfigPath <path>', 'Absolute path to config.', path.resolve(__dirname, '../tsconfig.json'))
80+
.option('--tsconfigPath <path>', 'Absolute path to config.', path.resolve(__dirname, '../cdk/tsconfig.json'))
8181
.option('--appPath <path>', 'Absolute path to app.', path.resolve(__dirname, '../cdk/app.ts'))
8282
.action(async (options) => {
8383
const { stackName, appPath, tsconfigPath } = options

0 commit comments

Comments
 (0)