A simple tool to quickly package VSCode color theme .json files into .vsix packages instead of having to create a project and package it with yeoman.
Just execute the script with the Python interpreter:
py tools/ct2vsix.py your_colors.jsonA little temp folder will be created, that's where the package will be created. During the packaging process, you will be prompted for input twice. Both times you have to agree by typing 'y' and hit enter.
WARNING A 'repository' field is missing from the 'package.json' manifest file.
Do you want to continue? [y/N] y
WARNING LICENSE.md, LICENSE.txt or LICENSE not found
Do you want to continue? [y/N] yAnd that's it! You will find your_colors-0.1.0.vsix chilling where you ran the script and the temp folder will be gone. Now you can manually install the extension, without having to distribute in the VSCode Marketplace, which is an unnecesary and convoluted process if all you want to do is rice VSCode.
Since this depends on the VSCode Extension Manager (a.k.a vsce) for packaging, you must install vsce beforehand with your favorite node package manager.
npm install -g vsce
# or
yarn global add vsce
# or
pnpm install -g vsce