mirror of
https://github.com/darkings/Obsidian-MonokaiSyntax.git
synced 2026-07-22 04:40:26 +00:00
14 lines
556 B
JavaScript
14 lines
556 B
JavaScript
import { copyFileSync, mkdirSync } from "node:fs";
|
|
import { resolve } from "node:path";
|
|
|
|
import { resolveQaPaths, resolveVaultRoot } from "./qa-paths.js";
|
|
|
|
const rootDir = resolve(import.meta.dirname, "..");
|
|
const { themeDir: vaultThemeDir } = resolveQaPaths(resolveVaultRoot());
|
|
|
|
mkdirSync(vaultThemeDir, { recursive: true });
|
|
|
|
copyFileSync(resolve(rootDir, "theme.css"), resolve(vaultThemeDir, "theme.css"));
|
|
copyFileSync(resolve(rootDir, "manifest.json"), resolve(vaultThemeDir, "manifest.json"));
|
|
|
|
console.log(`已同步主题到:${vaultThemeDir}`);
|