mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-06-11 17:00:13 +00:00
12 lines
521 B
JavaScript
12 lines
521 B
JavaScript
import { execSync } from "node:child_process";
|
|
|
|
try {
|
|
console.log("[Postbuild] Generating type definitions for fallback...");
|
|
execSync("npx tsc -p tsconfig.types.json", { stdio: "inherit" });
|
|
console.log("[Postbuild] Type definitions generated successfully.");
|
|
} catch (error) {
|
|
// Ignore compiler errors from tsc so that pre-existing type errors in the submodule
|
|
// do not block the build from succeeding.
|
|
console.warn("[Postbuild] Type definitions generated with some compilation warnings.");
|
|
}
|