Skip to content

Commit 375b005

Browse files
committed
fix: typescript fixes
1 parent ea08198 commit 375b005

File tree

6 files changed

+25
-20
lines changed

6 files changed

+25
-20
lines changed

cli/create-start-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"bin": "./dist/index.js",
66
"type": "module",
77
"scripts": {
8-
"build": "tsc src/index.ts --outDir dist",
8+
"build": "tsc",
99
"start": "node dist/index.js"
1010
},
1111
"repository": {

cli/create-start-app/tsconfig.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
2-
"extends": "../../tsconfig.json",
32
"compilerOptions": {
3+
"target": "ES2020",
4+
"module": "ES2020",
45
"outDir": "./dist",
5-
"rootDir": "./src"
6+
"rootDir": "./src",
7+
"strict": true,
8+
"esModuleInterop": true,
9+
"skipLibCheck": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"moduleResolution": "node"
612
},
713
"include": ["./src/**/*.ts"],
814
"exclude": ["node_modules", "dist"]

cli/create-tsrouter-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"bin": "./dist/index.js",
66
"type": "module",
77
"scripts": {
8-
"build": "tsc src/index.ts --outDir dist",
8+
"build": "tsc",
99
"start": "node dist/index.js"
1010
},
1111
"repository": {

cli/create-tsrouter-app/tsconfig.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
2-
"extends": "../../tsconfig.json",
32
"compilerOptions": {
3+
"target": "ES2020",
4+
"module": "ES2020",
45
"outDir": "./dist",
5-
"rootDir": "./src"
6+
"rootDir": "./src",
7+
"strict": true,
8+
"esModuleInterop": true,
9+
"skipLibCheck": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"moduleResolution": "node"
612
},
713
"include": ["./src/**/*.ts"],
814
"exclude": ["node_modules", "dist"]

packages/cta-engine/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
2-
"extends": "../../tsconfig.json",
32
"compilerOptions": {
3+
"target": "ES2020",
4+
"module": "ES2020",
45
"outDir": "./dist",
56
"rootDir": "./src",
7+
"strict": true,
8+
"esModuleInterop": true,
9+
"skipLibCheck": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"moduleResolution": "node",
612
"declaration": true,
713
"declarationDir": "./dist/types"
814
},

tsconfig.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)