Skip to content

Commit

Permalink
Move --sourcemap to scripts instead of Invoke-Build
Browse files Browse the repository at this point in the history
So that they're generated even when using `build-watch`. Double-checked
that they're not included in the package (even though they're now
generated for release configuration too).
  • Loading branch information
JustinGrote authored and andyleejordan committed Aug 25, 2023
1 parent 72a09cc commit 4994959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"main": "./out/main.js",
"scripts": {
"lint": "eslint . --ext .ts",
"build": "esbuild ./src/main.ts --outdir=out --bundle --external:vscode --platform=node",
"build": "esbuild ./src/main.ts --outdir=out --sourcemap --bundle --external:vscode --platform=node",
"build-watch": "npm run build -- --watch",
"build-test": "tsc --incremental",
"build-test-watch": "npm run build-test -- --watch",
Expand Down
2 changes: 1 addition & 1 deletion vscode-powershell.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ task Build Restore, {
# Unfortunately `esbuild` doesn't support emitting 1:1 files (yet).
# https://github.com/evanw/esbuild/issues/944
switch ($Configuration) {
"Debug" { Invoke-BuildExec { & npm run build -- --sourcemap } }
"Debug" { Invoke-BuildExec { & npm run build } }
"Release" { Invoke-BuildExec { & npm run build -- --minify } }
}
}
Expand Down

0 comments on commit 4994959

Please sign in to comment.