Перейти до основного змісту
Версія: 10.x

pnpm init

Створює файл package.json.

Параметри

--init-type <type>

  • Default: commonjs
  • Type: commonjs, module

Set the module system for the package.

--init-package-manager

Pin the project to the current pnpm version by adding a "packageManager" field to package.json.