Skip to content

Commit 75fd884

Browse files
committed
Prepare packaging
1 parent 0a0afbd commit 75fd884

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.vscodeignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.vscode/**
22
.vscode-test/**
33
out/**
4-
node_modules/**
4+
# node_modules/** # For bundling @actions/* and @types/github-script
55
src/**
66
.gitignore
77
.yarnrc
@@ -12,3 +12,4 @@ vsc-extension-quickstart.md
1212
**/*.map
1313
**/*.ts
1414
**/.vscode-test.*
15+
!**/*.d.ts # For bundling @actions/* and @types/github-script d.ts

esbuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function main() {
3535
sourcesContent: false,
3636
platform: 'node',
3737
outfile: 'dist/extension.js',
38-
external: ['vscode'],
38+
external: ['vscode', 'typescript'],
3939
logLevel: 'silent',
4040
plugins: [
4141
/* add to the end of plugins array */

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
]
2828
},
2929
"scripts": {
30-
"vscode:prepublish": "npm run package",
30+
"vscode:prepublish": "npm run package && npm i --omit=dev",
3131
"compile": "npm run check-types && npm run lint && node esbuild.js",
3232
"watch": "npm-run-all -p watch:*",
3333
"watch:esbuild": "node esbuild.js --watch",

0 commit comments

Comments
 (0)