Skip to content

Commit

Permalink
🔧 chore(core): Introduce tsconfig.build.json
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Oct 3, 2023
1 parent 458f6a0 commit a56f86a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
],
"scripts": {
"build": "pnpm run clean && pnpm run build:dist && pnpm run build:types",
"build:dist": "tsup",
"build:types": "tsc --emitDeclarationOnly",
"build:dist": "tsup --tsconfig tsconfig.build.json",
"build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json",
"clean": "rimraf dist types",
"lint": "biome check . --apply",
"lint:check": "biome check . --verbose",
Expand Down
11 changes: 11 additions & 0 deletions packages/core/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "types",
"declaration": true,
"sourceMap": true,
"declarationMap": true
},
"include": ["src"]
}
11 changes: 4 additions & 7 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{
"extends": "tsconfig/base.json",
"extends": "./tsconfig.build.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "types",
"declaration": true,
"sourceMap": true,
"declarationMap": true
"rootDir": "."
},
"include": [
"src"
"src",
"test"
]
}

0 comments on commit a56f86a

Please sign in to comment.