🐛 fix(build): ensure version.lock directory exists + fix merge typo

This commit is contained in:
web-ppanel
2026-01-27 18:21:39 +00:00
parent 6458f2c8ad
commit 052a0a4209
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
import { readFileSync, writeFileSync } from "node:fs";
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
import { fileURLToPath, URL } from "node:url";
import tailwindcss from "@tailwindcss/vite";
import { devtools } from "@tanstack/devtools-vite";
@@ -18,6 +18,8 @@ function versionLockPlugin(): Plugin {
);
const rootPkg = JSON.parse(readFileSync(rootPkgPath, "utf-8"));
const version = rootPkg.version || "0.0.0";
mkdirSync(distDir, { recursive: true });
writeFileSync(`${distDir}/version.lock`, version);
},
};