|
1 | | -# Don't allow dependencies to be used before they have been released for at least 1 week |
| 1 | +# Minimum age for new packages before they can be used (in minutes) – 10080 min = 1 week |
2 | 2 | minimumReleaseAge: 10080 |
3 | 3 |
|
4 | | -# Don't warn about ignored build scripts |
5 | | -ignoredBuiltDependencies: [] |
6 | | - |
7 | | -# Hoist all dependencies to the root of node_modules, for better compatibility with packages that expect flat node_modules |
| 4 | +# Hoist all dependencies to the root of node_modules because some packages |
| 5 | +# (e.g. the draft-js ecosystem) do not work correctly with pnpm's default isolation strategy |
8 | 6 | shamefullyHoist: true |
| 7 | + |
| 8 | +# Force all draft-js ecosystem packages to use immutable 3.x – |
| 9 | +# newer versions are not compatible with draft-js. |
| 10 | +# The minimatch override fixes the version used by @typescript-eslint/typescript-estree. |
| 11 | +overrides: |
| 12 | + "@draft-js-plugins/drag-n-drop>immutable": 3.8.3 |
| 13 | + "@draft-js-plugins/editor>immutable": 3.8.3 |
| 14 | + "@draft-js-plugins/focus>immutable": 3.8.3 |
| 15 | + "@draft-js-plugins/image>immutable": 3.8.3 |
| 16 | + "@draft-js-plugins/resizeable>immutable": 3.8.3 |
| 17 | + "draft-convert>immutable": 3.8.3 |
| 18 | + "draft-js-export-html>immutable": 3.8.3 |
| 19 | + "draft-js-utils>immutable": 3.8.3 |
| 20 | + "draft-js>immutable": 3.8.3 |
| 21 | + "@typescript-eslint/typescript-estree>minimatch": 9.0.7 |
| 22 | + |
| 23 | +# pnpm 11 requires explicit opt-in for packages that run install scripts. |
| 24 | +# - @parcel/watcher: used by sass and vite for file system watching |
| 25 | +# - core-js: does not require a native build, denied as unnecessary |
| 26 | +# - esbuild: downloads its native binary during installation |
| 27 | +# - unrs-resolver: Rust-based module resolver used by eslint-plugin-import-x |
| 28 | +allowBuilds: |
| 29 | + "@parcel/watcher": true |
| 30 | + core-js: false |
| 31 | + esbuild: true |
| 32 | + unrs-resolver: true |
0 commit comments