mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
16 lines
416 B
JavaScript
16 lines
416 B
JavaScript
import { compilePack } from "@foundryvtt/foundryvtt-cli";
|
|
import { promises as fs } from "fs";
|
|
|
|
const MODULE_ID = process.cwd();
|
|
const yaml = false;
|
|
|
|
const packs = await fs.readdir("./src/packs");
|
|
for (const pack of packs) {
|
|
if (pack === ".gitattributes") continue;
|
|
console.log("Packing " + pack);
|
|
await compilePack(
|
|
`${MODULE_ID}/src/packs/${pack}`,
|
|
`${MODULE_ID}/packs/${pack}`,
|
|
{ yaml },
|
|
);
|
|
}
|