@vttforge/cli / readManifest
Function: readManifest()
readManifest(
distDir):Promise<FoundryManifest>
Experimental
Locate and parse the Foundry manifest inside the given dist directory. Prefers system.json, falls back to module.json (a single dist can't be both; the vite plugin emits exactly one based on the project type).
Throws if neither file exists, required fields are missing/non-string, or the id/version contain characters that would let downstream join() calls escape their intended directory.
Shape is unproven: no consumer has asked for this yet. It can change in a minor.
Parameters
distDir
string
Returns
Promise<FoundryManifest>