Skip to content

Instantly share code, notes, and snippets.

@brandongregoryscott
Created June 18, 2021 18:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
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