Repository navigation
Commit ca4422e
committed
fix(@schematics/angular): generate pnpm-workspace.yaml with allowBuilds for pnpm projects
Starting in pnpm 11, `strictDepBuilds` is enabled by default and pnpm
fails with `ERR_PNPM_IGNORED_BUILDS` when any dependency in the graph
declares lifecycle build scripts that are not listed in `allowBuilds` in
`pnpm-workspace.yaml`.
Generate a `pnpm-workspace.yaml` file when scaffolding a new workspace
with `pnpm` that configures `allowBuilds` to `false` for the transitive
build dependencies (`@parcel/watcher`, `esbuild`, `lmdb`, and
`msgpackr-extract`), which already ship prebuilt native binaries via
`optionalDependencies` and do not need their fallback install scripts
to execute.
Fixes #346221 parent ef600f2 commit ca4422e
3 files changed
Lines changed: 28 additions & 2 deletions
File tree
- packages/schematics/angular/workspace
- files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
41 | 56 | | |
42 | 57 | | |
43 | 58 | | |
| |||
0 commit comments