Skip to content

Commit dcdf51c

Browse files
author
Matthieu Puibaraud
authored
fix: no source maps in production (#230)
1 parent d9b8579 commit dcdf51c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@
5252
"watch": "^1.0.2"
5353
},
5454
"scripts": {
55-
"prepublishOnly": "yarn build # runs before publish",
55+
"prepublishOnly": "yarn build:production # runs before publish",
5656
"build": "rm -rf dist && tsc --module CommonJS",
57+
"build:production": "yarn build -p tsconfig.production.json",
5758
"build:watch": "rm -rf dist && tsc -w --module CommonJS",
5859
"tsc": "tsc -p . --noEmit && tsc -p ./src/__tests__",
5960
"test:browser": "yarn tsc && jest -c ./config/jest.config.js --env=jsdom",

tsconfig.production.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"sourceMap": false
5+
}
6+
}

0 commit comments

Comments
 (0)