Skip to content

Commit 27df155

Browse files
committed
Normalize TypeScript project config
1 parent 45611e2 commit 27df155

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

rslib.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig({
1515
entry: {
1616
index: ['./ts/**/*.ts'],
1717
},
18-
tsconfigPath: './tsconfig.json',
18+
tsconfigPath: './tsconfig.build.json',
1919
},
2020
output: {
2121
target: 'node',

tsconfig.build.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "ts"
5+
},
6+
"include": [
7+
"ts/**/*.ts"
8+
]
9+
}

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"declaration": true,
1010
"declarationMap": false,
1111
"sourceMap": false,
12-
"rootDir": "ts",
12+
"rootDir": ".",
1313
"outDir": "dist",
1414
"verbatimModuleSyntax": true,
1515
"skipLibCheck": true,
@@ -18,6 +18,8 @@
1818
]
1919
},
2020
"include": [
21-
"ts/**/*.ts"
21+
"*.ts",
22+
"ts/**/*.ts",
23+
"examples/**/*.ts"
2224
]
2325
}

0 commit comments

Comments
 (0)