Skip to content

Commit 131285b

Browse files
Fix publish steps and package requirements
1 parent ebf6d5e commit 131285b

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/publish-extension.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
echo "AppVersion=$APP_VERSION" >> $GITHUB_OUTPUT
4040
echo "app version = v$APP_VERSION"
4141
42+
- name: Compile
43+
run: npm run build
44+
4245
- name: Build VSIX package
4346
run: npm run package -- -o vscode-string-manipulation.v${{ steps.calculateVersion.outputs.AppVersion }}.vsix
4447

.vscodeignore

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
.vscode/**
2-
.vscode-test/**
3-
test/**
41
.gitignore
5-
vsc-extension-quickstart.md
6-
**/jsconfig.json
7-
**/*.map
2+
.vscode
3+
.vscode-test/**
84
**/.eslintrc.json
5+
**/*.map
6+
**/jsconfig.json
7+
node_modules
8+
# out/
9+
src/
10+
test/**
11+
tsconfig.json

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"categories": [
2121
"Other"
2222
],
23-
"main": "./out/extension",
24-
"activationEvents": [
23+
"main": "./out/extension.js",
24+
"activationEvents": [
2525
"onCommand:string-manipulation.titleize",
2626
"onCommand:string-manipulation.titleizeApStyle",
2727
"onCommand:string-manipulation.titleizeChicagoStyle",
@@ -335,8 +335,7 @@
335335
"test": "node ./test/runTest.js",
336336
"build": "tsc",
337337
"package": "(rm -rf out || true) && mkdir out && cp package.json out && vsce package",
338-
"vsce": "vsce",
339-
"debug": "code --extensionDevelopmentPath=./"
338+
"vscode:prepublish": "tsc -p ./"
340339
},
341340
"devDependencies": {
342341
"@types/glob": "^7.1.3",

0 commit comments

Comments
 (0)