Skip to content

source

Patterns supported by glob to find package.json files you want to manage with syncpack.

Default Value

Defaulted to match most Projects using Lerna or Yarn Workspaces

.syncpackrc
{
"source": ["package.json", "packages/*/package.json"]
}

Resolving Packages

package.json files are resolved in this order of precedence:

  1. If --source glob patterns are provided, use those.
  2. If using Yarn Workspaces, read workspaces from ./package.json.
  3. If using Lerna, read packages from ./lerna.json.
  4. If using Pnpm, read packages from ./pnpm-workspace.yaml.
  5. Default to 'package.json' and 'packages/*/package.json'.