🐛 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

View File

@ -64,7 +64,6 @@ export default function UserSubscription({ userId }: { userId: number }) {
row={row} row={row}
token={row.token} token={row.token}
userId={userId} userId={userId}
/>
/>, />,
], ],
}} }}

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 { fileURLToPath, URL } from "node:url";
import tailwindcss from "@tailwindcss/vite"; import tailwindcss from "@tailwindcss/vite";
import { devtools } from "@tanstack/devtools-vite"; import { devtools } from "@tanstack/devtools-vite";
@ -18,6 +18,8 @@ function versionLockPlugin(): Plugin {
); );
const rootPkg = JSON.parse(readFileSync(rootPkgPath, "utf-8")); const rootPkg = JSON.parse(readFileSync(rootPkgPath, "utf-8"));
const version = rootPkg.version || "0.0.0"; const version = rootPkg.version || "0.0.0";
mkdirSync(distDir, { recursive: true });
writeFileSync(`${distDir}/version.lock`, version); writeFileSync(`${distDir}/version.lock`, version);
}, },
}; };