Skip to content

Commit

Permalink
add tsconfig specific for build
Browse files Browse the repository at this point in the history
  • Loading branch information
wilk committed Nov 13, 2018
1 parent 94d7f72 commit f230c6f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/job.js",
"types": "dist/job.d.ts",
"scripts": {
"build": "npm run clean; tsc; npm run copy-assets",
"build": "npm run clean; tsc -p tsconfig.build.json; npm run copy-assets",
"copy-assets": "cp src/worker.js dist",
"clean": "rm -rf dist",
"pretest": "npm run lint",
Expand Down
17 changes: 17 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true,
"target": "es2017",
"noImplicitAny": false,
"moduleResolution": "node",
"sourceMap": false,
"outDir": "dist",
"allowJs": true,
"baseUrl": ".",
"paths": {
"*": ["node_modules/*"]
}
},
"include": ["src/**/*"]
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"target": "es2017",
"noImplicitAny": false,
"moduleResolution": "node",
"allowJs": true,
"sourceMap": false,
"outDir": "dist",
"declaration": true,
Expand Down

0 comments on commit f230c6f

Please sign in to comment.