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
Save brandongregoryscott/8303184477d27c9d4712fb07ecf38670 to your computer and use it in GitHub Desktop.
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