Skip to content

Commit

Permalink
fix: add tsconfig for build and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SocketSomeone committed Apr 3, 2023
1 parent 5bd995b commit 2abef6c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A module for creating Discord bots using NestJS, based on Discord.js.",
"version": "5.5.3",
"scripts": {
"build": "rimraf dist && tsc -p tsconfig.json",
"build": "rimraf dist && tsc -p tsconfig.build.json",
"prepublish:npm": "npm run build",
"publish:npm": "release-it",
"prepublish:dev": "npm run build",
Expand Down
23 changes: 23 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"noImplicitAny": false,
"noUnusedLocals": false,
"removeComments": false,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": false,
"outDir": "./dist",
"rootDir": "./src",
"skipLibCheck": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules"
]
}
18 changes: 1 addition & 17 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"noImplicitAny": false,
"noUnusedLocals": false,
"removeComments": false,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": false,
"outDir": "./dist",
"skipLibCheck": true
},
"extends": "./tsconfig.build.json",
"include": [
"src/**/*",
"**/*.spec.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 2abef6c

Please sign in to comment.