pnpm import

pnpm import generates a pnpm-lock.yaml from another package manager's lockfile. Fichiers sources pris en charge :

  • package-lock.json
  • npm-shrinkwrap.json
  • yarn.lock

Yarn patch files must be inside the workspace. pnpm warns and imports the dependency without the patch if the file is outside it.

Declare workspaces in pnpm-workspace.yaml before running pnpm import.