Skip to content
Snippets Groups Projects
Commit 0affe621 authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

ci: update pnpm lockfile after updating package.json from edge

parent 93932b1a
No related branches found
No related tags found
No related merge requests found
// Copies the dependencies from the core package to the edge package. Run with each build to ensure that they are the same // 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 fs from "node:fs";
import path from "node:path"; import path from "node:path";
...@@ -9,6 +10,7 @@ const edgePackagePath = path.join(process.cwd(), "package.json"); ...@@ -9,6 +10,7 @@ const edgePackagePath = path.join(process.cwd(), "package.json");
const edgePackage = readJson(edgePackagePath); const edgePackage = readJson(edgePackagePath);
edgePackage.dependencies = readJson(corePackagePath).dependencies; edgePackage.dependencies = readJson(corePackagePath).dependencies;
writeJson(edgePackagePath, edgePackage); writeJson(edgePackagePath, edgePackage);
execSync("pnpm install --lockfile-only", { stdio: "inherit" });
function readJson(filePath) { function readJson(filePath) {
const content = fs.readFileSync(filePath, "utf8"); const content = fs.readFileSync(filePath, "utf8");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment