No description
- TypeScript 100%
| .eslintrc.json | ||
| .gitignore | ||
| bun.lockb | ||
| index.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Pack Formatter
To use this, you must have the Bun runtime installed. Simply run bun install, bun compile, and you'll find the build-packs binary in the dist folder.
Usage
build-packs
Arguments
-ior--indir- The input directory. Defaults to the current working directory.-oor--outdir- The directory to output the compiled packs to. Defaults to dist.-dor--data- The data directory containing the data files. Defailts to data.-ror--revision- The revision/version. Defaults togit rev-parse --short HEADif .git exists, else required.-ior--info- The info file. Defaults to info.json.-vor--version- Only compile this version.
Info File
An info.json file should be present in the input directory. This file should contain the following fields:
name- The name of the pack.description- A description of the pack.url- The URL to the pack's repository.versions- A two dimensional array of mc version to pack format. ([[mcVersion, packFormat]])exports- The exports to be made from the zip files produced for each version. A two dimensional array of mcVersion or "all". ([["all"],["1.20", "1.20.2"]])overrides- An object of properties to override per version. ({"1.20": {"data": "common"} })data- The data directory to use for this version. Superceeds the global data directory.