Skip to content

Commit 7fd95af

Browse files
committed
Update package.json
1 parent d1a2b0e commit 7fd95af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,13 @@
142142
}
143143
},
144144
"scripts": {
145-
"vscode:prepublish": "pnpm run compile",
146145
"compile": "tsc -p ./",
147146
"watch": "tsc -watch -p ./",
148147
"pretest": "pnpm run compile && pnpm run lint",
149148
"lint": "eslint src",
150149
"test": "vscode-test",
151-
"package": "vsce package",
152-
"publish:ovsx": "ovsx publish wtf-commit-${npm_package_version}.vsix",
150+
"package": "pnpm run compile && vsce package",
151+
"publish:ovsx": "sh -c 'if [ -n \"$OVSX_PAT\" ]; then ovsx publish \"wtf-commit-${npm_package_version}.vsix\" --pat \"$OVSX_PAT\"; else ovsx publish \"wtf-commit-${npm_package_version}.vsix\"; fi'",
153152
"release": "pnpm run package && pnpm run publish:ovsx"
154153
},
155154
"devDependencies": {

0 commit comments

Comments
 (0)