foundryvtt-cli icon indicating copy to clipboard operation
foundryvtt-cli copied to clipboard

Adjust example API usage

Open JPMeehan opened this issue 1 year ago • 3 comments

The example API usage for some reason assumes the current working directory is the user's Modules folder, rather than the module folder itself; this contrasts with the shell commands, as those are configured to know the user's Data folder and which subfolder to check in. So instead of await compilePack("mymodule/packs/src/actors", "mymodule/packs/actors"); the example usage should either mimic a full path or go await compilePack("packs/src/actors", "packs/actors");

JPMeehan avatar Sep 18 '23 02:09 JPMeehan