Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Options:
-t, --extensionType # ts, js, colortheme, language, snippets, keymap...
--extensionId # Id of the extension
--extensionDescription # Description of the extension
--pkgManager # 'npm', 'yarn' or 'pnpm'
--pkgManager # 'npm', 'yarn', 'pnpm' or 'bun'
--bundle # 'webpack', 'esbuild'. Bundle the extension with webpack or esbuild
--gitInit # Initialize a git repo

Expand Down
2 changes: 1 addition & 1 deletion generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class extends Generator {
this.option('extensionId', { type: String, description: 'Id of the extension' });
this.option('extensionDescription', { type: String, description: 'Description of the extension' });

this.option('pkgManager', { type: String, description: `'npm', 'yarn' or 'pnpm'` });
this.option('pkgManager', { type: String, description: `'npm', 'yarn', 'pnpm' or 'bun` });
this.option('bundler', { type: String, description: `Bundle the extension: 'webpack', 'esbuild'` });
this.option('gitInit', { type: Boolean, description: `Initialize a git repo` });

Expand Down
6 changes: 5 additions & 1 deletion generators/app/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function askForGit(generator, extensionConfig) {
*/
export function askForPackageManager(generator, extensionConfig) {
const pkgManager = generator.options['pkgManager'];
if (pkgManager === 'npm' || pkgManager === 'yarn' || pkgManager === 'pnpm') {
if (pkgManager === 'npm' || pkgManager === 'yarn' || pkgManager === 'pnpm' || pkgManager === 'bun') {
extensionConfig.pkgManager = pkgManager;
return Promise.resolve();
}
Expand All @@ -150,6 +150,10 @@ export function askForPackageManager(generator, extensionConfig) {
{
name: 'pnpm',
value: 'pnpm'
},
{
name: 'bun',
value: 'bun'
}
]
}).then(pckgManagerAnswer => {
Expand Down
Loading