Skip to content

Commit 0b3396c

Browse files
authored
build: do not bundle sourvcemaps (#1341)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent affddd5 commit 0b3396c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This will install process automatically build the project from source.
1818
## Build from source
1919

2020
```shell
21-
npm run build
21+
npm run build-dev
2222
```
2323

2424
## Testing

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
"prepublish": "npm run build",
9797
"prepublishOnly": "run-s -lc build setup-tests test",
9898
"lint": "tsc --noEmit",
99-
"build": "run-p --aggregate-output -l 'build:*'",
100-
"prebuild:node": "node -r fs -e 'fs.rmSync(\"dist\",{recursive:true,force:true})'",
101-
"build:node": "tsc -b ./tsconfig.json",
99+
"prebuild": "node -r fs -e 'fs.rmSync(\"dist\",{recursive:true,force:true})'",
100+
"build": "tsc -b ./tsconfig.json",
101+
"build-dev": "npm run -- build --sourceMap",
102102
"setup-tests": "node tests/integration/setup.js",
103103
"test": "run-p --aggregate-output -lc 'test:*'",
104104
"test:jest": "c8 jest",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
5050
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5151
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
52-
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
52+
"sourceMap": false, /* Create source map files for emitted JavaScript files. */
5353
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
5454
"outDir": "./dist/", /* Specify an output folder for all emitted files. */
5555
"removeComments": false, /* Disable emitting comments. */

0 commit comments

Comments
 (0)