|
1 | 1 | packages: |
2 | 2 | - 'scripts' |
3 | 3 | - 'types/**' |
| 4 | + |
| 5 | +lockfile: false |
| 6 | + |
| 7 | +# As of pnpm v8, the default is "lowest", selecting the minimum version |
| 8 | +# available in the package graph. But, on DT, we want to test the latest of |
| 9 | +# everything. |
| 10 | +resolutionMode: highest |
| 11 | + |
| 12 | +# Do not delay installing things; we need to check the latest state. |
| 13 | +minimumReleaseAge: 0 |
| 14 | + |
| 15 | +# Prevent pnpm from hoisting eslint/prettier-ish packages. |
| 16 | +# The first two are the defaults, but we don't want to also hoist packages |
| 17 | +# like @types/eslint-scope (which exist in the types dir). |
| 18 | +publicHoistPattern: |
| 19 | + - '*eslint*' |
| 20 | + - '*prettier*' |
| 21 | + - '!@types/*' |
| 22 | + |
| 23 | +# Match npm's behavior and ensure we get all deps. |
| 24 | +autoInstallPeers: true |
| 25 | +# Don't complain about peer dependencies; they're out of our control. |
| 26 | +strictPeerDependencies: false |
| 27 | +# Don't use the top-level package.json to resolve conflicts. |
| 28 | +resolvePeersFromWorkspaceRoot: false |
| 29 | +# https://github.com/pnpm/pnpm/issues/6300 |
| 30 | +dedupePeerDependents: false |
| 31 | + |
| 32 | +ignoreScripts: true |
| 33 | + |
| 34 | +# Ensure that @types packages are resolved to this repo's packages where |
| 35 | +# available. |
| 36 | +preferWorkspacePackages: true |
| 37 | +# And also to transitive dependencies. |
| 38 | +linkWorkspacePackages: deep |
| 39 | +# For manual invocations of `pnpm add`, don't save deps as "workspace:...". |
| 40 | +saveWorkspaceProtocol: false |
| 41 | +# Ignore cycles; they are out of our control. |
| 42 | +ignoreWorkspaceCycles: true |
| 43 | +# Don't pull symlinks up out of workspace packages. |
| 44 | +dedupeDirectDeps: false |
| 45 | +# Don't allow every package to see every other package. |
| 46 | +hoistWorkspacePackages: false |
| 47 | + |
| 48 | +# Remove once https://github.com/pnpm/pnpm/issues/6457 is fixed |
| 49 | +# and we can set a hoisting limit of "workspaces" like in Yarn. |
| 50 | +sharedWorkspaceLockfile: false |
| 51 | + |
| 52 | +overrides: |
| 53 | + '@wordpress/vips': '-' |
0 commit comments