bucknatt_mitsu-plugin/obsidian-miku-plugin/scripts/sync-catalog.mjs
bucknatt cc46e2a88f Prepare Miku Plugin Hybrid 1.0.0 for Community marketplace.
Bundle theme CSS into plugin styles at build time, add root catalog
metadata (manifest, LICENSE, README), release workflow, and submission docs.
2026-05-15 15:27:08 +02:00

13 lines
464 B
JavaScript

import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
const pluginRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const repoRoot = path.resolve(pluginRoot, "..");
for (const name of ["manifest.json", "versions.json"]) {
const from = path.join(repoRoot, name);
const to = path.join(pluginRoot, name);
fs.copyFileSync(from, to);
console.log(`Synced ${name} -> obsidian-miku-plugin/`);
}