Skip to content

Commit 3399a68

Browse files
authored
chore: install rimraf4 on older systems (#1118)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent fd996a3 commit 3399a68

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,19 +188,24 @@ jobs:
188188
# we need to craft compatible versions by hand,
189189
# and might utilize `npm_config_engine_strict=false`
190190
191-
dev_constraints=' npm-run-all2 c8 mocha fast-glob '
191+
dev_constraints=' npm-run-all2 c8 mocha fast-glob rimraf '
192192
# as long as npm cannot auto-resolve engine-constraints, we need to help here
193193
case "$NODE_VERSION" in
194194
'16')
195195
dev_constraints="${dev_constraints/ c8 / c8@^9 }"
196+
dev_constraints="${dev_constraints/ rimraf / rimraf@^4 }"
197+
export npm_config_engine_strict=false
196198
;;
197199
'14')
198200
dev_constraints="${dev_constraints/ c8 / c8@^9 }"
199201
dev_constraints="${dev_constraints/ npm-run-all2 / npm-run-all2@^5 }"
202+
dev_constraints="${dev_constraints/ rimraf / rimraf@^4 }"
203+
export npm_config_engine_strict=false
200204
;;
201205
'14.0.0')
202206
dev_constraints="${dev_constraints/ c8 / c8@^8 }"
203207
dev_constraints="${dev_constraints/ npm-run-all2 / npm-run-all2@^5 }"
208+
dev_constraints="${dev_constraints/ rimraf / rimraf@^4 }"
204209
export npm_config_engine_strict=false
205210
;;
206211
esac

0 commit comments

Comments
 (0)