Skip to content

📦 Move pnpm settings from `pnpm` field in `package.json` and `.npmrc` file to `pnpm-workspace.yaml`.

License

Notifications You must be signed in to change notification settings

ntnyq/pnpm-settings-migrator

Repository files navigation

pnpm-settings-migrator

CI NPM VERSION NPM DOWNLOADS LICENSE

Move pnpm settings from pnpm field in package.json and .npmrc file to pnpm-workspace.yaml.

Usage

Run in your workspace root:

pnpm dlx pnpm-settings-migrator

CLI Options

--cwd

  • Type: string
  • Default: process.cwd()

Current working directory.

--sort-keys

  • Type: boolean
  • Default: false

Sort keys when write pnpm-workspace.yaml.

--no-yarn-resolutions

  • Type: boolean
  • Default: false

Disable migrating resolutions field in package.json.

--no-clean-npmrc

  • Type: boolean
  • Default: false

Disable removing pnpm settings in .npmrc file.

---no-clean-package-json

  • Type: boolean
  • Default: false

Disable removing pnpm field in package.json.

---no-newline-between

  • Type: boolean
  • Default: false

Disable adding newlines between each root keys.

Context

License

MIT License © 2025-PRESENT ntnyq

About

📦 Move pnpm settings from `pnpm` field in `package.json` and `.npmrc` file to `pnpm-workspace.yaml`.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •