mirror of
https://github.com/bucknatt/mitsu-plugin.git
synced 2026-07-22 07:05:32 +00:00
Bundle theme CSS into plugin styles at build time, add root catalog metadata (manifest, LICENSE, README), release workflow, and submission docs.
13 lines
464 B
JavaScript
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/`);
|
|
}
|