Skip to content

Commit

Permalink
refactor(template/typescript): move extension.js's path to dist direc…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
waynewaynetsai committed May 3, 2022
1 parent 52112a3 commit 74e7e9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/version-1.0.0/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"engine": {
"vscode": "^1.65.0"
},
"main": "./extension.js",
"main": "./dist/extension.js",
"scripts": {
"compile": "webpack",
"watch": "webpack --watch",
Expand Down
2 changes: 1 addition & 1 deletion template/version-1.0.0/typescript/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const extensionConfig = {
entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
output: {
// the bundle is stored in the 'out' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, './'),
path: path.resolve(__dirname, 'dist'),
filename: 'extension.js',
libraryTarget: 'commonjs2'
},
Expand Down

0 comments on commit 74e7e9f

Please sign in to comment.