From a802a3c0ce6861afd3e993f33a740cbaa05b2188 Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Tue, 14 Sep 2021 05:42:50 -0600 Subject: [PATCH] Generate source-map files when compiling This will make reported errors easier to link back to Typescript sources. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4677fb8..3cb890f 100644 --- a/package.json +++ b/package.json @@ -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" },