Skip to content

Commit

Permalink
build: do not bundle sourvcemaps (#1341)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck authored Dec 17, 2024
1 parent affddd5 commit 0b3396c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This will install process automatically build the project from source.
## Build from source

```shell
npm run build
npm run build-dev
```

## Testing
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"prepublish": "npm run build",
"prepublishOnly": "run-s -lc build setup-tests test",
"lint": "tsc --noEmit",
"build": "run-p --aggregate-output -l 'build:*'",
"prebuild:node": "node -r fs -e 'fs.rmSync(\"dist\",{recursive:true,force:true})'",
"build:node": "tsc -b ./tsconfig.json",
"prebuild": "node -r fs -e 'fs.rmSync(\"dist\",{recursive:true,force:true})'",
"build": "tsc -b ./tsconfig.json",
"build-dev": "npm run -- build --sourceMap",
"setup-tests": "node tests/integration/setup.js",
"test": "run-p --aggregate-output -lc 'test:*'",
"test:jest": "c8 jest",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
"sourceMap": false, /* Create source map files for emitted JavaScript files. */
// "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. */
"outDir": "./dist/", /* Specify an output folder for all emitted files. */
"removeComments": false, /* Disable emitting comments. */
Expand Down

0 comments on commit 0b3396c

Please sign in to comment.