@@ -162,7 +162,8 @@ tasks:
162
162
{{ range $dep := (.brew_dependencies | trim | splitLines) -}}
163
163
[ -n "$(which {{ $dep }})" ]
164
164
{{ end -}}
165
- - " [ $(npm -v | cut -d. -f1) -ge 9 ]"
165
+ - |
166
+ [ "$(npm -v | awk -F. '{print ($1 > 9 || ($1 == 9 && $2 > 4)) ? 0 : 1}')" -eq 0 ]
166
167
silent : true
167
168
cmds :
168
169
- cmd : |
@@ -172,7 +173,9 @@ tasks:
172
173
173
174
{{ .brew_dependencies }}
174
175
175
- These aren't required for initial PRQL development, but they are required for some of the tests.
176
+ ...or alternatively that npm < 9.4
177
+
178
+ These aren't required for initial PRQL development, but they are required for some of the extras.
176
179
177
180
Install them with:
178
181
@@ -292,7 +295,7 @@ tasks:
292
295
# Must set `install-links=false` in the playground's `npm install` to
293
296
# install prql-js as the regular dependency, instead of creating a
294
297
# symlink. Refer to https://github.com/PRQL/prql/pull/1296.
295
- - cd playground && npm install --install-links=false
298
+ - cd playground && npm install
296
299
- cd playground && npm run build
297
300
# We place the playground app in a nested path, because we want to use
298
301
# prql-lang.org/playground with an iframe containing the playground.
@@ -347,7 +350,7 @@ tasks:
347
350
desc : Build & serve the playground.
348
351
dir : web/playground
349
352
cmds :
350
- - npm install --install-links=false
353
+ - npm install
351
354
- npm start
352
355
353
356
run-playground-cached :
@@ -362,13 +365,10 @@ tasks:
362
365
# Use task's sources/generates to see if checksums of
363
366
# node_modules directory have changed since package.json was updated
364
367
365
- # Use `npm install --install-links=false` to install prql-js
366
- # as the regular dependency, instead of creating a
367
- # symlink. Refer to https://github.com/PRQL/prql/pull/1296.
368
368
desc : Check to see if package.json has changed since we ran npm install
369
369
dir : web/playground
370
370
cmds :
371
- - npm install --install-links=false
371
+ - npm install
372
372
sources :
373
373
- package.json
374
374
generates :
0 commit comments