Skip to content

Commit 17a8a6c

Browse files
author
Camille
committed
Fix: Remove map files from builds
1 parent f7be4b2 commit 17a8a6c

File tree

4 files changed

+30
-35
lines changed

4 files changed

+30
-35
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"start": "npm-run-all -p watch:css start-js",
4242
"start-js": "react-app-rewired start --scripts-version react-scripts-ts start",
4343
"build-js": "react-app-rewired build --scripts-version react-scripts-ts build",
44-
"build": "npm-run-all build:css build-js",
44+
"build": "npm-run-all build:css build-js clean:mapfiles",
45+
"clean:mapfiles": "find build -name '*.map' -exec rm {} ';'",
4546
"test": "jest",
4647
"test:coverage": "jest --collectCoverage=true",
4748
"test:ci": "jest --ci",

tsconfig.json

-26
This file was deleted.

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tsconfig.prod.json

tsconfig.prod.json

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
11
{
2-
"extends": "./tsconfig.json"
3-
}
2+
"extends": "./node_modules/@openware/coding-standards/tsconfig.json",
3+
"compilerOptions": {
4+
"sourceMap": false,
5+
"sourceRoot": null,
6+
"baseUrl": "/",
7+
"jsx": "react",
8+
"rootDir": "src",
9+
"target": "es5",
10+
"module": "commonjs",
11+
"noImplicitAny": false,
12+
"lib": [
13+
"es2015",
14+
"dom",
15+
"es2017"
16+
],
17+
"types": [
18+
"node",
19+
"jest"
20+
]
21+
},
22+
"include": [
23+
"./src/assets",
24+
"./src",
25+
"./images.d.ts",
26+
"./charting_library.min.d.ts"
27+
]
28+
}

tsconfig.test.json

-6
This file was deleted.

0 commit comments

Comments
 (0)