diff --git a/packages/edge/scripts/update-deps.js b/packages/edge/scripts/update-deps.js index cb8f6d8662a284ffaff61d0861457b943b6c947f..0fc1286663213e1b78731a094fac120b6daf5036 100644 --- a/packages/edge/scripts/update-deps.js +++ b/packages/edge/scripts/update-deps.js @@ -1,5 +1,6 @@ // Copies the dependencies from the core package to the edge package. Run with each build to ensure that they are the same +import { execSync } from "node:child_process"; import fs from "node:fs"; import path from "node:path"; @@ -9,6 +10,7 @@ const edgePackagePath = path.join(process.cwd(), "package.json"); const edgePackage = readJson(edgePackagePath); edgePackage.dependencies = readJson(corePackagePath).dependencies; writeJson(edgePackagePath, edgePackage); +execSync("pnpm install --lockfile-only", { stdio: "inherit" }); function readJson(filePath) { const content = fs.readFileSync(filePath, "utf8");