|
67 | 67 | */ |
68 | 68 | // "autoInstallPeers": false, |
69 | 69 |
|
| 70 | + /** |
| 71 | + * The minimum number of minutes that must pass after a version is published before pnpm will install it. |
| 72 | + * This setting helps reduce the risk of installing compromised packages, as malicious releases are typically |
| 73 | + * discovered and removed within a short time frame. |
| 74 | + * |
| 75 | + * For example, the following setting ensures that only packages released at least one day ago can be installed: |
| 76 | + * |
| 77 | + * "minimumReleaseAge": 1440 |
| 78 | + * |
| 79 | + * (SUPPORTED ONLY IN PNPM 10.16.0 AND NEWER) |
| 80 | + * |
| 81 | + * PNPM documentation: https://pnpm.io/settings#minimumreleaseage |
| 82 | + * |
| 83 | + * The default value is 0 (disabled). |
| 84 | + */ |
| 85 | + // "minimumReleaseAge": 1440, |
| 86 | + |
| 87 | + /** |
| 88 | + * An array of package names or patterns to exclude from the minimumReleaseAge check. |
| 89 | + * This allows certain trusted packages to be installed immediately after publication. |
| 90 | + * Patterns are supported using glob syntax (e.g., "@myorg/*" to exclude all packages from an organization). |
| 91 | + * |
| 92 | + * For example: |
| 93 | + * |
| 94 | + * "minimumReleaseAgeExclude": ["webpack", "react", "@myorg/*"] |
| 95 | + * |
| 96 | + * (SUPPORTED ONLY IN PNPM 10.16.0 AND NEWER) |
| 97 | + * |
| 98 | + * PNPM documentation: https://pnpm.io/settings#minimumreleaseageexclude |
| 99 | + */ |
| 100 | + // "minimumReleaseAgeExclude": ["@myorg/*"], |
| 101 | + |
70 | 102 | /** |
71 | 103 | * If true, then Rush will add the `--strict-peer-dependencies` command-line parameter when |
72 | 104 | * invoking PNPM. This causes `rush update` to fail if there are unsatisfied peer dependencies, |
|
265 | 297 | // "fsevents" |
266 | 298 | ], |
267 | 299 |
|
| 300 | + /** |
| 301 | + * The `globalOnlyBuiltDependencies` setting specifies which dependencies are permitted to run |
| 302 | + * build scripts (`preinstall`, `install`, and `postinstall` lifecycle events). This is the inverse |
| 303 | + * of `globalNeverBuiltDependencies`. In PNPM 10.x, build scripts are disabled by default for |
| 304 | + * security, so this setting is required to explicitly permit specific packages to run their |
| 305 | + * build scripts. The settings are written to the `onlyBuiltDependencies` field of the |
| 306 | + * `pnpm-workspace.yaml` file that is generated by Rush during installation. |
| 307 | + * |
| 308 | + * (SUPPORTED ONLY IN PNPM 10.1.0 AND NEWER) |
| 309 | + * |
| 310 | + * PNPM documentation: https://pnpm.io/settings#onlybuiltdependencies |
| 311 | + * |
| 312 | + * Example: |
| 313 | + * "globalOnlyBuiltDependencies": [ |
| 314 | + * "esbuild", |
| 315 | + * "playwright", |
| 316 | + * "@swc/core" |
| 317 | + * ] |
| 318 | + */ |
| 319 | + // "globalOnlyBuiltDependencies": [ |
| 320 | + // "esbuild" |
| 321 | + // ], |
| 322 | + |
268 | 323 | /** |
269 | 324 | * The `globalIgnoredOptionalDependencies` setting suppresses the installation of optional NPM |
270 | 325 | * dependencies specified in the list. This is useful when certain optional dependencies are |
|
0 commit comments