feat(init): init command add options desc (#9482)

* feat(init): `init` command add options desc

* refactor: improve init help

* refactor: improve init help

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
This commit is contained in:
bteaandZoltan Kochan authored and GitHub committed 2025-05-06 00:18:02 +02:00
1 parent 3f70b673bf
commit 36f6924a58
1 file changed
+15 -1
+15 -1
View File
@@ -22,7 +22,21 @@ export const commandNames = ['init']
export function help (): string {
return renderHelp({
description: 'Create a package.json file',
descriptionLists: [],
descriptionLists: [
{
title: 'Options',
list: [
{
description: 'Set the module system for the package. Defaults to "commonjs".',
name: '--init-type <commonjs|module>',
},
{
description: 'Pin the project to the current pnpm version by adding a "packageManager" field to package.json',
name: '--init-package-manager',
},
],
},
],
url: docsUrl('init'),
usages: ['pnpm init'],
})