Skip to content

Commit 294a519

Browse files
committed
Add prepare script to build package on install
When installing from git, npm runs the 'prepare' script automatically. This ensures the package is built without needing to commit dist/ files. This allows consuming repos to install the package via: npm install @salesforce/vscode-extension-ci@github:salesforcecli/github-workflows#feat/add-vscode-extension-ci
1 parent db4cc93 commit 294a519

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/vscode-extension-ci/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"clean": "rm -rf dist",
1414
"test": "echo \"Tests not yet implemented\"",
1515
"lint": "eslint src --ext .ts",
16+
"prepare": "npm run build",
1617
"prepublishOnly": "npm run build"
1718
},
1819
"files": [

0 commit comments

Comments
 (0)