Skip to content

Commit

Permalink
build(tsconfig): use array extends
Browse files Browse the repository at this point in the history
  • Loading branch information
nogic1008 committed Apr 11, 2023
1 parent 53d4c7a commit 472f878
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
14 changes: 0 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"scripts": {
"prepare": "husky install",
"build": "ncc build src/main.ts -m --license licenses.txt --target es2019",
"build": "ncc build src/main.ts -m --license licenses.txt --target es2021",
"fix": "run-p \"lint:eslint --fix\" \"lint:prettier --write\"",
"lint": "run-p lint:*",
"lint:eslint": "eslint --ext .ts --ignore-path .gitignore .",
Expand All @@ -38,7 +38,6 @@
"devDependencies": {
"@octokit/webhooks-types": "^6.10.0",
"@tsconfig/node16": "^1.0.3",
"@tsconfig/node16-strictest": "^1.0.4",
"@tsconfig/strictest": "^2.0.0",
"@types/node": "^16.18.23",
"@typescript-eslint/eslint-plugin": "^5.58.0",
Expand Down
10 changes: 6 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"extends": "@tsconfig/node16-strictest/tsconfig.json",
"extends": [
"@tsconfig/node16/tsconfig.json",
"@tsconfig/strictest/tsconfig.json"
],
"compilerOptions": {
"rootDir": "./src",
"checkJs": false
"rootDir": "src"
},
"exclude": ["node_modules", "test", "*.config.ts"]
"exclude": ["coverage", "node_modules", "test", "*.config.ts"]
}

0 comments on commit 472f878

Please sign in to comment.