Visual Studio Code package merger (vscd).
The package.json file is getting rather large for big extensions. This command line tool will search for all contributes.json files in current working directory to build up the package.json.
Each contributes.json file must contain the contributes property. The contents of contributes is the same as what the package.json expects. See the documentation for Contribution Points. Other properties are ignored.
- Install
vscdas adevDependency:npm i vscd --save-dev - Update your build process to invoke
vscd:
"scripts": {
"package": "vsce package",
"vscode:prepublish": "rm -rf dist && npm run build",
"webpack": "vscd --clean && webpack --mode development",
},--clean(optional, recommended) - the existingpackage.jsoncontributions will be ignored and will be re-built from thecontributes.jsonfiles.-d <dir>(optional) - forcevscdto use another directory other than your working directory.
See an example of vscd in here on the codefori/vscode-db2i repository.