Skip to content

Commit 6ff2305

Browse files
authored
fix: Updates tsconfig section of sample migration script. (#1287)
* fix: Updates tsconfig section of sample migration script. * Remove outDir from tsconfig.json Removed 'outDir' from tsconfig.json generation. * Remove outDir from tsconfig.json Removed 'outDir' from tsconfig.json generation.
1 parent 502feb4 commit 6ff2305

2 files changed

Lines changed: 12 additions & 22 deletions

File tree

samples/new-sample.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,13 @@ EOF
106106
# Create tsconfig.json
107107
cat > "$NAME/tsconfig.json" << 'EOF'
108108
{
109+
"extends": "../../tsconfig.base.json",
109110
"compilerOptions": {
110-
"module": "esnext",
111-
"target": "esnext",
112-
"strict": true,
113-
"noImplicitAny": false,
114-
"lib": ["es2015", "esnext", "es6", "dom", "dom.iterable"],
115-
"moduleResolution": "Node",
116-
"jsx": "preserve"
117-
}
111+
"rootDir": "."
112+
},
113+
"include": [
114+
"./*.ts",
115+
]
118116
}
119117
EOF
120118

samples/new1.sh

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,13 @@ EOF
6262
touch "${OUTPUT_DIR}/${NAME}/tsconfig.json"
6363
cat > "${OUTPUT_DIR}/${NAME}/tsconfig.json" << EOF
6464
{
65+
"extends": "../../tsconfig.base.json",
6566
"compilerOptions": {
66-
"module": "esnext",
67-
"target": "esnext",
68-
"strict": true,
69-
"noImplicitAny": false,
70-
"lib": [
71-
"es2015",
72-
"esnext",
73-
"es6",
74-
"dom",
75-
"dom.iterable"
76-
],
77-
"moduleResolution": "Node",
78-
"jsx": "preserve"
79-
}
67+
"rootDir": "."
68+
},
69+
"include": [
70+
"./*.ts",
71+
]
8072
}
8173
EOF
8274

0 commit comments

Comments
 (0)