pnpm import
pnpm import
从另一个包管理器的锁定文件生成 pnpm-lock.yaml
。支持的源文件:
¥pnpm import
generates a pnpm-lock.yaml
from another package manager's lockfile. Supported source files:
-
package-lock.json
-
npm-shrinkwrap.json
-
yarn.lock
请注意,如果你希望导入依赖的工作区,则需要事先在 pnpm-workspace.yaml 文件中声明它们。
¥Note that if you have workspaces you wish to import dependencies for, they will need to be declared in a pnpm-workspace.yaml file beforehand.