Skip to content

Commit 368bbb9

Browse files
JustinGroteandyleejordan
authored andcommitted
Move --sourcemap to scripts instead of Invoke-Build
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).
1 parent 3dc8e4c commit 368bbb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"main": "./out/main.js",
119119
"scripts": {
120120
"lint": "eslint . --ext .ts",
121-
"build": "esbuild ./src/main.ts --outdir=out --bundle --external:vscode --platform=node",
121+
"build": "esbuild ./src/main.ts --outdir=out --sourcemap --bundle --external:vscode --platform=node",
122122
"build-watch": "npm run build -- --watch",
123123
"build-test": "tsc --incremental",
124124
"build-test-watch": "npm run build-test -- --watch",

vscode-powershell.build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ task Build Restore, {
101101
# Unfortunately `esbuild` doesn't support emitting 1:1 files (yet).
102102
# https://github.com/evanw/esbuild/issues/944
103103
switch ($Configuration) {
104-
"Debug" { Invoke-BuildExec { & npm run build -- --sourcemap } }
104+
"Debug" { Invoke-BuildExec { & npm run build } }
105105
"Release" { Invoke-BuildExec { & npm run build -- --minify } }
106106
}
107107
}

0 commit comments

Comments
 (0)