Skip to content

Commit 97c15c7

Browse files
committed
Configure package.json
This step completed: https://code.visualstudio.com/api/working-with-extensions/bundling-extension#run-the-extension Haven't run anything yet though.
1 parent abc692a commit 97c15c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
},
2222
"license": "MIT",
2323
"publisher": "walles",
24-
"main": "./out/extension.js",
24+
"main": "./dist/extension",
2525
"scripts": {
26-
"compile": "tsc -p ./",
26+
"compile": "webpack --mode development",
2727
"format": "prettier --config .prettierrc 'src/**/*.ts' --write",
2828
"lint": "eslint src --ext ts",
29-
"package": "vsce package --no-git-tag-version --no-update-package-json 99.99.99",
29+
"package": "webpack --mode production --devtool hidden-source-map",
3030
"publish": "vsce publish",
3131
"pretest": "npm run compile && npm run lint",
3232
"test": "vscode-tmgrammar-test -g tests/support/diff.tmLanguage.json tests/unit/*.test && node ./out/test/runTest.js",
33-
"vscode:prepublish": "npm run compile",
34-
"watch": "tsc -watch -p ./"
33+
"vscode:prepublish": "npm run package",
34+
"watch": "webpack --mode development --watch"
3535
},
3636
"scriptsComment": {
3737
"package": [
@@ -81,4 +81,4 @@
8181
"engines": {
8282
"vscode": "^1.103.0"
8383
}
84-
}
84+
}

0 commit comments

Comments
 (0)