Skip to content

Commit

Permalink
chore: install rimraf4 on older systems (#1118)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck authored Jul 7, 2024
1 parent fd996a3 commit 3399a68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,19 +188,24 @@ jobs:
# we need to craft compatible versions by hand,
# and might utilize `npm_config_engine_strict=false`
dev_constraints=' npm-run-all2 c8 mocha fast-glob '
dev_constraints=' npm-run-all2 c8 mocha fast-glob rimraf '
# as long as npm cannot auto-resolve engine-constraints, we need to help here
case "$NODE_VERSION" in
'16')
dev_constraints="${dev_constraints/ c8 / c8@^9 }"
dev_constraints="${dev_constraints/ rimraf / rimraf@^4 }"
export npm_config_engine_strict=false
;;
'14')
dev_constraints="${dev_constraints/ c8 / c8@^9 }"
dev_constraints="${dev_constraints/ npm-run-all2 / npm-run-all2@^5 }"
dev_constraints="${dev_constraints/ rimraf / rimraf@^4 }"
export npm_config_engine_strict=false
;;
'14.0.0')
dev_constraints="${dev_constraints/ c8 / c8@^8 }"
dev_constraints="${dev_constraints/ npm-run-all2 / npm-run-all2@^5 }"
dev_constraints="${dev_constraints/ rimraf / rimraf@^4 }"
export npm_config_engine_strict=false
;;
esac
Expand Down

0 comments on commit 3399a68

Please sign in to comment.