Parcourir la source

Backport PR #11433: Use the root yarn.lock in staging when making a release. (#11857)

Co-authored-by: Jason Grout <jasongrout@users.noreply.github.com>
MeeseeksMachine il y a 3 ans
Parent
commit
e0e2a81c73
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      buildutils/src/update-core-mode.ts

+ 5 - 1
buildutils/src/update-core-mode.ts

@@ -57,7 +57,11 @@ const notice =
   }
 });
 
-// Create a new yarn.lock file to ensure it is correct.
+// Copy the root yarn.lock, then update and deduplicate to prune it.
+fs.copySync(
+  path.join('.', 'yarn.lock'),
+  path.join('.', 'jupyterlab', 'staging', 'yarn.lock')
+);
 utils.run('jlpm', { cwd: staging });
 try {
   utils.run('jlpm yarn-deduplicate -s fewer --fail', { cwd: staging });