There was an error while loading. Please reload this page.
1 parent f109b3f commit 5db11e2Copy full SHA for 5db11e2
1 file changed
Makefile
@@ -892,7 +892,7 @@ update-js: node-check | node_modules ## update js dependencies
892
@# nolyfill writes package.json#pnpm.overrides, which REPLACES (not merges with)
893
@# the overrides in pnpm-workspace.yaml, silently dropping any entry nolyfill
894
@# does not manage, such as the cosmiconfig pin.
895
- @if grep -qE '^ "pnpm"[[:space:]]*:' package.json; then \
+ @if node -e 'process.exit(JSON.parse(require("node:fs").readFileSync("package.json", "utf8")).pnpm === undefined ? 1 : 0)'; then \
896
echo "nolyfill re-created package.json#pnpm.overrides."; \
897
echo "That field REPLACES the overrides in pnpm-workspace.yaml rather than merging with"; \
898
echo "them, so every override pnpm-workspace.yaml holds that nolyfill does not manage"; \
0 commit comments