feat: add config for build

This commit is contained in:
Shinwoo PARK 2023-12-03 19:05:22 +09:00
parent 9ee4a0396c
commit 2432e1b393
3 changed files with 15 additions and 1 deletions

View File

@ -20,7 +20,7 @@
},
"scripts": {
"docs": "cp ./README.md ./dist/README.md",
"build": "rimraf ./dist/lib && tsc",
"build": "rimraf ./dist/lib && tsc --project tsconfig.build.json",
"up": "yarn docs && yarn build && yarn publish dist"
}
}

12
tsconfig.build.json Normal file
View File

@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"dist",
"src/test",
],
"compilerOptions": {
"experimentalDecorators": false,
"emitDecoratorMetadata": false,
}
}

View File

@ -7,6 +7,8 @@
"rootDir": "./src",
"declaration": true,
"declarationMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"exclude": [
"node_modules",