Skip to content

Instantly share code, notes, and snippets.

Created June 18, 2021 18:54
What would you like to do?
Example npm scripts for building, packaging and publishing an extension
"scripts": {
"build:dist": "./node_modules/esbuild/bin/esbuild src/extension.ts --bundle --outfile=dist/extension.js --platform=node --external:vscode --minify",
"prevscode:publish": "npm run build:dist",
"vscode:publish": "vsce package && vsce publish",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment