A platform for community discussion. Free, open, simple.
DEV: Skip pnpm install in bin/qunit if already up-to-date (#37921)
David Taylorc177877b39da
diff --git a/bin/ember-cli b/bin/ember-cliindex 8b7b4998cea..a45adc3d228 100755--- a/bin/ember-cli+++ b/bin/ember-cli@@ -59,7 +59,7 @@ endnode_modules_outdated =beginFile.read("node_modules/.pnpm/lock.yaml") != File.read("pnpm-lock.yaml")- rescue ERRNO::ENOENT+ rescue Errno::ENOENTtrueenddiff --git a/bin/qunit b/bin/qunitindex d5c78914966..7ed03d5b684 100755--- a/bin/qunit+++ b/bin/qunit@@ -394,7 +394,15 @@ class QunitRunnerputs "[dry-run] skipping pnpm install"returnend- system("pnpm", "install", exception: true)++ node_modules_outdated =+ begin+ File.read("node_modules/.pnpm/lock.yaml") != File.read("pnpm-lock.yaml")+ rescue Errno::ENOENT+ true+ end++ system("pnpm", "install", exception: true) if node_modules_outdatedenddef detect_browser