mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Initial commit
This commit is contained in:
commit
aa4021d1a2
163 changed files with 26530 additions and 0 deletions
16
tools/pullYMLtoLDB.mjs
Normal file
16
tools/pullYMLtoLDB.mjs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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 },
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue