adding pack tools.

This commit is contained in:
rwanoux
2024-11-18 09:27:33 +01:00
parent e721c706eb
commit ca816eec2d
5 changed files with 129 additions and 7 deletions
+16
View File
@@ -0,0 +1,16 @@
import { compilePack } from '@foundryvtt/foundryvtt-cli';
import { promises as fs } from 'fs';
const MODULE_ID = process.cwd();
const yaml = true;
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 }
);
}