Skip to content

Commit

Permalink
fix: prod build without source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
forsti0506 committed Jan 3, 2021
1 parent 150de28 commit 7ef068e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: npm install

- name: Build it
run: npm run-script build
run: npm run-script build:prod

- name: Run tests
run: npm test
Expand Down
8 changes: 5 additions & 3 deletions .idea/workspace.xml

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
},
"scripts": {
"build": "tsc && copyfiles README.md dist",
"build:prod": "tsc --project tsconfig.prod.json && copyfiles README.md dist",
"test": "exit 0",
"lint": "eslint . --ext .ts",
"semantic-release": "semantic-release --debug=true"
Expand Down
32 changes: 32 additions & 0 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"compilerOptions": {
"module": "commonjs",
"noImplicitAny": false,
"sourceMap": false,
"removeComments": true,
"preserveConstEnums": true,
"declaration": true,
"target": "es2017",
"lib": [
"es2017",
"dom"
],
"outDir": "./dist",
"noUnusedLocals": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedParameters": false,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"allowUnreachableCode": false,
"types": [
"node"
],
"resolveJsonModule": true
},
"include": [
"./lib/**/*",
"./bin/**/*",
"node_modules/@types/puppeteer/index.d.ts"
]
}

0 comments on commit 7ef068e

Please sign in to comment.