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
vscd
as 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.json
contributions will be ignored and will be re-built from thecontributes.json
files.-d <dir>
(optional) - forcevscd
to use another directory other than your working directory.
See an example of vscd
in here on the codefori/vscode-db2i repository.