Skip to content

Commit 58c8093

Browse files
feat(rsbuild-plugin): extend base tsconfig instead of standalone config
1 parent f9bcfac commit 58c8093

File tree

5 files changed

+36
-7
lines changed

5 files changed

+36
-7
lines changed

packages/rsbuild-plugin/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"outputs": ["{options.outputPath}"],
1010
"options": {
1111
"outputPath": "packages/rsbuild-plugin/dist",
12-
"main": "packages/rsbuild-plugin/cli/src/index.ts",
12+
"main": "packages/rsbuild-plugin/src/index.ts",
1313
"tsConfig": "packages/rsbuild-plugin/tsconfig.json",
1414
"assets": [],
1515
"project": "packages/rsbuild-plugin/package.json",

packages/rsbuild-plugin/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export * from './cli/index';
2+
export * from './utils/index';
3+
export * from './constant';
4+
export * from './logger';

packages/rsbuild-plugin/tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
{
2+
"extends": "../../tsconfig.base.json",
23
"compilerOptions": {
3-
"baseUrl": ".",
4-
"rootDir": "./",
54
"outDir": "dist",
65
"sourceMap": false,
76
"module": "es2022",
87
"target": "es2022",
9-
"skipLibCheck": true,
10-
"moduleResolution": "node",
118
"allowJs": false,
129
"strict": true,
1310
"types": ["jest", "node"],
14-
"experimentalDecorators": true,
1511
"resolveJsonModule": true,
1612
"allowSyntheticDefaultImports": true,
17-
"esModuleInterop": true,
1813
"removeComments": true,
1914
"declaration": true,
2015
"paths": {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../dist/out-tsc",
5+
"declaration": true,
6+
"types": ["node"]
7+
},
8+
"include": ["src/**/*.ts"],
9+
"exclude": [
10+
"jest.config.ts",
11+
"src/**/*.spec.ts",
12+
"src/**/*.test.ts",
13+
"dist/**",
14+
"node_modules/**"
15+
]
16+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../../dist/out-tsc",
5+
"module": "commonjs",
6+
"types": ["jest", "node"]
7+
},
8+
"include": [
9+
"jest.config.ts",
10+
"src/**/*.test.ts",
11+
"src/**/*.spec.ts",
12+
"src/**/*.d.ts"
13+
]
14+
}

0 commit comments

Comments
 (0)