Generate source-map files when compiling

This will make reported errors easier to link back to Typescript sources.
This commit is contained in:
Daz DeBoer 2021-09-14 05:42:50 -06:00
parent d06e19f862
commit a802a3c0ce
No known key found for this signature in database
GPG Key ID: DD6B9F0B06683D5D

View File

@ -7,7 +7,7 @@
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts",
"build": "ncc build src/main.ts --out dist/main --minify && ncc build src/post.ts --out dist/post --minify",
"build": "ncc build src/main.ts --out dist/main --source-map --minify && ncc build src/post.ts --out dist/post --source-map --minify",
"test": "jest",
"all": "npm run format && npm run lint && npm run build && npm test"
},