mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-23 04:52:58 +00:00
13 lines
504 B
TypeScript
13 lines
504 B
TypeScript
import { writeFileSync } from "fs";
|
|
import { allMessages } from "../src/common/messages/combinedMessages.dev.ts";
|
|
import path from "path";
|
|
const __dirname = import.meta.dirname;
|
|
const currentPath = __dirname;
|
|
const outDir = path.resolve(currentPath, "../src/common/messages/combinedMessages.prod.ts");
|
|
|
|
console.log(`Writing to ${outDir}`);
|
|
writeFileSync(
|
|
outDir,
|
|
`export const allMessages: Readonly<Record<string, Readonly<Record<string, string>>>> = ${JSON.stringify(allMessages, null, 4)};`
|
|
);
|