@vttforge/cli 0.5.4 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/bin.mjs +5 -5
- package/dist/bin.mjs.map +1 -1
- package/dist/index.d.mts +24 -24
- package/dist/index.mjs +1 -1
- package/dist/{src-BrNh991M.mjs → src-Cnb6Trj5.mjs} +80 -80
- package/dist/src-Cnb6Trj5.mjs.map +1 -0
- package/package.json +2 -2
- package/templates/module-ts/scripts/foundry-globals.ts +10 -5
- package/templates/system-ts/scripts/foundry-globals.ts +12 -7
- package/dist/src-BrNh991M.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @vttforge/cli
|
|
2
2
|
|
|
3
|
+
## 0.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8a7ade5: Declare the Foundry globals with `var` so a consumer's own declarations can coexist. A package that adds `@vttforge/testing` to a typechecked project already declares `foundry`, `game`, `CONFIG`, `Hooks` and `ui` for its own source, and two `declare global` blocks only merge when both use `var`. With `const` on either side `tsc` stopped with `TS2451: Cannot redeclare block-scoped variable`, which is what a real consumer hit the first time it tried to typecheck its tests. The scaffolding templates are corrected the same way.
|
|
8
|
+
|
|
9
|
+
## 0.5.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 9b8ca8c: Plain punctuation in error messages, prompts and doc comments: em dashes replaced with sentence breaks, colons or parentheses. The generated API reference reads these comments, so they are public text.
|
|
14
|
+
|
|
3
15
|
## 0.5.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/bin.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { M as runAuditCommand, c as runDev, n as ScaffoldError, r as runInit, t as VTTFORGE_CLI_VERSION, x as runBuild } from "./src-
|
|
2
|
+
import { M as runAuditCommand, c as runDev, n as ScaffoldError, r as runInit, t as VTTFORGE_CLI_VERSION, x as runBuild } from "./src-Cnb6Trj5.mjs";
|
|
3
3
|
import { defineCommand, runMain } from "citty";
|
|
4
4
|
//#region src/cli.ts
|
|
5
5
|
/**
|
|
6
6
|
* vttforge command tree.
|
|
7
7
|
*
|
|
8
8
|
* Kept apart from `bin.ts`, which only runs it. Argument definitions are the
|
|
9
|
-
* CLI's contract with its users
|
|
10
|
-
* alias resolving to its canonical name
|
|
9
|
+
* CLI's contract with its users (`--no-install` skipping the install, an
|
|
10
|
+
* alias resolving to its canonical name) and a module that calls `runMain`
|
|
11
11
|
* on import cannot be reached by a test. Exporting the commands from here
|
|
12
12
|
* lets the suite parse real argv against the real definitions.
|
|
13
13
|
*/
|
|
@@ -177,7 +177,7 @@ const main = defineCommand({
|
|
|
177
177
|
meta: {
|
|
178
178
|
name: "vttforge",
|
|
179
179
|
version: VTTFORGE_CLI_VERSION,
|
|
180
|
-
description: "VTTForge CLI
|
|
180
|
+
description: "VTTForge CLI: scaffold, dev, build and audit for Foundry v13+ systems and modules"
|
|
181
181
|
},
|
|
182
182
|
subCommands: {
|
|
183
183
|
init,
|
|
@@ -189,7 +189,7 @@ const main = defineCommand({
|
|
|
189
189
|
//#endregion
|
|
190
190
|
//#region src/bin.ts
|
|
191
191
|
/**
|
|
192
|
-
* vttforge bin
|
|
192
|
+
* vttforge bin: the executable entry.
|
|
193
193
|
*
|
|
194
194
|
* Nothing but the launch. The command tree lives in `cli.ts` so tests can
|
|
195
195
|
* import it without running the CLI.
|
package/dist/bin.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.mjs","names":[],"sources":["../src/cli.ts","../src/bin.ts"],"sourcesContent":["/**\n * vttforge command tree.\n *\n * Kept apart from `bin.ts`, which only runs it. Argument definitions are the\n * CLI's contract with its users — `--no-install` skipping the install, an\n * alias resolving to its canonical name — and a module that calls `runMain`\n * on import cannot be reached by a test. Exporting the commands from here\n * lets the suite parse real argv against the real definitions.\n */\nimport { defineCommand } from 'citty';\nimport { runAuditCommand } from './commands/audit.js';\nimport { runBuild } from './commands/build.js';\nimport { runDev } from './commands/dev.js';\nimport { runInit, ScaffoldError } from './commands/init.js';\nimport { VTTFORGE_CLI_VERSION } from './index.js';\n\nexport const init = defineCommand({\n meta: {\n name: 'init',\n description: 'Scaffold a new Foundry VTT system or module from a VTTForge template',\n },\n args: {\n name: {\n type: 'positional',\n description: 'Directory name for the new system/module (also the default manifest id)',\n required: false,\n },\n type: {\n type: 'string',\n description: 'Package type: system | module',\n },\n lang: {\n type: 'string',\n description: 'Language: ts | js',\n },\n id: {\n type: 'string',\n description: 'Manifest id (defaults to a slug of the directory name)',\n },\n title: {\n type: 'string',\n description: 'Human-readable title shown in Foundry setup screens',\n },\n description: {\n type: 'string',\n description: 'One-line description for the manifest',\n },\n author: {\n type: 'string',\n description: 'Author name for the manifest (defaults to the git author)',\n },\n license: {\n type: 'string',\n description: 'SPDX license id (default MIT)',\n },\n // Without a terminal there is nothing for a prompt to read, so it waits\n // forever. This flag takes the defaults instead — and the scaffolder\n // also assumes it when stdin is not a TTY, so CI need not pass it.\n yes: {\n type: 'boolean',\n alias: 'y',\n default: false,\n description: 'Accept defaults for anything not passed, without prompting',\n },\n // Citty parses `--no-X` as `args.X === false`, so define affirmative\n // flags with a true default. `--no-install` then yields `install: false`\n // which we forward as `noInstall: true`.\n install: {\n type: 'boolean',\n default: true,\n description: 'Install dependencies after scaffold (use --no-install to skip)',\n },\n git: {\n type: 'boolean',\n default: true,\n description: 'Initialize a git repository after scaffold (use --no-git to skip)',\n },\n },\n async run({ args }) {\n try {\n await runInit({\n name: typeof args.name === 'string' ? args.name : undefined,\n type: typeof args.type === 'string' ? (args.type as 'system' | 'module') : undefined,\n lang: typeof args.lang === 'string' ? (args.lang as 'ts' | 'js') : undefined,\n id: typeof args.id === 'string' ? args.id : undefined,\n title: typeof args.title === 'string' ? args.title : undefined,\n description: typeof args.description === 'string' ? args.description : undefined,\n author: typeof args.author === 'string' ? args.author : undefined,\n license: typeof args.license === 'string' ? args.license : undefined,\n yes: args.yes === true,\n noInstall: args.install === false,\n noGit: args.git === false,\n });\n } catch (err) {\n // ScaffoldError already surfaced its message via `p.cancel`; anything\n // else is a real crash worth showing. Either way the bin exits 1.\n if (!(err instanceof ScaffoldError)) {\n console.error(err instanceof Error ? err.message : String(err));\n }\n process.exit(1);\n }\n },\n});\n\nexport const dev = defineCommand({\n meta: {\n name: 'dev',\n description: 'Symlink dist/ into Foundry Data and run vite build --watch',\n },\n args: {\n 'foundry-data': {\n type: 'string',\n alias: 'data-dir',\n description:\n 'Override the Foundry user-data directory (skips env / config / first-run prompt)',\n },\n 'hmr-port': {\n type: 'string',\n description: 'Port for the hot reload bridge (default 31313)',\n },\n },\n async run({ args }) {\n // Citty surfaces aliases under the canonical name. Belt-and-suspenders:\n // accept either spelling so older docs and muscle memory keep working.\n const explicit =\n (typeof args['foundry-data'] === 'string' ? args['foundry-data'] : undefined) ??\n (typeof args['data-dir'] === 'string' ? args['data-dir'] : undefined);\n // A non-numeric port is the user's typo, not a reason to fall back to a\n // port they did not ask for — say so and stop.\n const rawPort = typeof args['hmr-port'] === 'string' ? args['hmr-port'] : undefined;\n const hmrPort = rawPort === undefined ? undefined : Number(rawPort);\n if (hmrPort !== undefined && !Number.isInteger(hmrPort)) {\n console.error(`--hmr-port expects a whole number, got \\`${rawPort}\\`.`);\n process.exit(1);\n }\n try {\n await runDev({ dataDir: explicit, hmrPort });\n } catch (err) {\n console.error(err instanceof Error ? err.message : String(err));\n process.exit(1);\n }\n },\n});\n\nexport const build = defineCommand({\n meta: {\n name: 'build',\n description: 'Run vite build (production) and emit <id>-<version>.zip for foundryvtt.com',\n },\n async run() {\n try {\n await runBuild();\n } catch (err) {\n console.error(err instanceof Error ? err.message : String(err));\n process.exit(1);\n }\n },\n});\n\nexport const audit = defineCommand({\n meta: {\n name: 'audit',\n description: 'Scan a system/module project for the seven v13 manifest + code footguns',\n },\n args: {\n path: {\n type: 'positional',\n description: 'Project root to scan (defaults to the current directory)',\n required: false,\n },\n json: {\n type: 'boolean',\n default: false,\n description: 'Emit a machine-readable JSON report instead of markdown',\n },\n strict: {\n type: 'boolean',\n default: false,\n description: 'Exit non-zero on any finding (default: only HIGH triggers a non-zero exit)',\n },\n },\n async run({ args }) {\n try {\n const result = await runAuditCommand({\n cwd: typeof args.path === 'string' ? args.path : undefined,\n format: args.json === true ? 'json' : 'markdown',\n strict: args.strict === true,\n });\n // Set exitCode instead of calling process.exit so any pending stdout\n // writes (the JSON / markdown report) get flushed before the process\n // tears down. process.exit(1) would truncate large reports on the\n // exact runs CI needs them intact.\n if (result.exitCode !== 0) process.exitCode = result.exitCode;\n } catch (err) {\n console.error(err instanceof Error ? err.message : String(err));\n process.exitCode = 1;\n }\n },\n});\n\nexport const main = defineCommand({\n meta: {\n name: 'vttforge',\n version: VTTFORGE_CLI_VERSION,\n description: 'VTTForge CLI — scaffold, dev, build for Foundry v13+ systems and modules',\n },\n subCommands: {\n init,\n dev,\n build,\n audit,\n },\n});\n","#!/usr/bin/env node\n/**\n * vttforge bin — the executable entry.\n *\n * Nothing but the launch. The command tree lives in `cli.ts` so tests can\n * import it without running the CLI.\n */\nimport { runMain } from 'citty';\nimport { main } from './cli.js';\n\nrunMain(main);\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAa,OAAO,cAAc;CAChC,MAAM;EACJ,MAAM;EACN,aAAa;CACf;CACA,MAAM;EACJ,MAAM;GACJ,MAAM;GACN,aAAa;GACb,UAAU;EACZ;EACA,MAAM;GACJ,MAAM;GACN,aAAa;EACf;EACA,MAAM;GACJ,MAAM;GACN,aAAa;EACf;EACA,IAAI;GACF,MAAM;GACN,aAAa;EACf;EACA,OAAO;GACL,MAAM;GACN,aAAa;EACf;EACA,aAAa;GACX,MAAM;GACN,aAAa;EACf;EACA,QAAQ;GACN,MAAM;GACN,aAAa;EACf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eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG,CAAC;GAC9D,QAAQ,WAAW;EACrB;CACF;AACF,CAAC;AAED,MAAa,OAAO,cAAc;CAChC,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;CACf;CACA,aAAa;EACX;EACA;EACA;EACA;CACF;AACF,CAAC;;;;;;;;;AC1MD,QAAQ,IAAI"}
|
|
1
|
+
{"version":3,"file":"bin.mjs","names":[],"sources":["../src/cli.ts","../src/bin.ts"],"sourcesContent":["/**\n * vttforge command tree.\n *\n * Kept apart from `bin.ts`, which only runs it. Argument definitions are the\n * CLI's contract with its users (`--no-install` skipping the install, an\n * alias resolving to its canonical name) and a module that calls `runMain`\n * on import cannot be reached by a test. Exporting the commands from here\n * lets the suite parse real argv against the real definitions.\n */\nimport { defineCommand } from 'citty';\nimport { runAuditCommand } from './commands/audit.js';\nimport { runBuild } from './commands/build.js';\nimport { runDev } from './commands/dev.js';\nimport { runInit, ScaffoldError } from './commands/init.js';\nimport { VTTFORGE_CLI_VERSION } from './index.js';\n\nexport const init = defineCommand({\n meta: {\n name: 'init',\n description: 'Scaffold a new Foundry VTT system or module from a VTTForge template',\n },\n args: {\n name: {\n type: 'positional',\n description: 'Directory name for the new system/module (also the default manifest id)',\n required: false,\n },\n type: {\n type: 'string',\n description: 'Package type: system | module',\n },\n lang: {\n type: 'string',\n description: 'Language: ts | js',\n },\n id: {\n type: 'string',\n description: 'Manifest id (defaults to a slug of the directory name)',\n },\n title: {\n type: 'string',\n description: 'Human-readable title shown in Foundry setup screens',\n },\n description: {\n type: 'string',\n description: 'One-line description for the manifest',\n },\n author: {\n type: 'string',\n description: 'Author name for the manifest (defaults to the git author)',\n },\n license: {\n type: 'string',\n description: 'SPDX license id (default MIT)',\n },\n // Without a terminal there is nothing for a prompt to read, so it waits\n // forever. This flag takes the defaults instead, and the scaffolder\n // also assumes it when stdin is not a TTY, so CI need not pass it.\n yes: {\n type: 'boolean',\n alias: 'y',\n default: false,\n description: 'Accept defaults for anything not passed, without prompting',\n },\n // Citty parses `--no-X` as `args.X === false`, so define affirmative\n // flags with a true default. `--no-install` then yields `install: false`\n // which we forward as `noInstall: true`.\n install: {\n type: 'boolean',\n default: true,\n description: 'Install dependencies after scaffold (use --no-install to skip)',\n },\n git: {\n type: 'boolean',\n default: true,\n description: 'Initialize a git repository after scaffold (use --no-git to skip)',\n },\n },\n async run({ args }) {\n try {\n await runInit({\n name: typeof args.name === 'string' ? args.name : undefined,\n type: typeof args.type === 'string' ? (args.type as 'system' | 'module') : undefined,\n lang: typeof args.lang === 'string' ? (args.lang as 'ts' | 'js') : undefined,\n id: typeof args.id === 'string' ? args.id : undefined,\n title: typeof args.title === 'string' ? args.title : undefined,\n description: typeof args.description === 'string' ? args.description : undefined,\n author: typeof args.author === 'string' ? args.author : undefined,\n license: typeof args.license === 'string' ? args.license : undefined,\n yes: args.yes === true,\n noInstall: args.install === false,\n noGit: args.git === false,\n });\n } catch (err) {\n // ScaffoldError already surfaced its message via `p.cancel`; anything\n // else is a real crash worth showing. Either way the bin exits 1.\n if (!(err instanceof ScaffoldError)) {\n console.error(err instanceof Error ? err.message : String(err));\n }\n process.exit(1);\n }\n },\n});\n\nexport const dev = defineCommand({\n meta: {\n name: 'dev',\n description: 'Symlink dist/ into Foundry Data and run vite build --watch',\n },\n args: {\n 'foundry-data': {\n type: 'string',\n alias: 'data-dir',\n description:\n 'Override the Foundry user-data directory (skips env / config / first-run prompt)',\n },\n 'hmr-port': {\n type: 'string',\n description: 'Port for the hot reload bridge (default 31313)',\n },\n },\n async run({ args }) {\n // Citty surfaces aliases under the canonical name. Belt-and-suspenders:\n // accept either spelling so older docs and muscle memory keep working.\n const explicit =\n (typeof args['foundry-data'] === 'string' ? args['foundry-data'] : undefined) ??\n (typeof args['data-dir'] === 'string' ? args['data-dir'] : undefined);\n // A non-numeric port is the user's typo, not a reason to fall back to a\n // port they did not ask for. Say so and stop.\n const rawPort = typeof args['hmr-port'] === 'string' ? args['hmr-port'] : undefined;\n const hmrPort = rawPort === undefined ? undefined : Number(rawPort);\n if (hmrPort !== undefined && !Number.isInteger(hmrPort)) {\n console.error(`--hmr-port expects a whole number, got \\`${rawPort}\\`.`);\n process.exit(1);\n }\n try {\n await runDev({ dataDir: explicit, hmrPort });\n } catch (err) {\n console.error(err instanceof Error ? err.message : String(err));\n process.exit(1);\n }\n },\n});\n\nexport const build = defineCommand({\n meta: {\n name: 'build',\n description: 'Run vite build (production) and emit <id>-<version>.zip for foundryvtt.com',\n },\n async run() {\n try {\n await runBuild();\n } catch (err) {\n console.error(err instanceof Error ? err.message : String(err));\n process.exit(1);\n }\n },\n});\n\nexport const audit = defineCommand({\n meta: {\n name: 'audit',\n description: 'Scan a system/module project for the seven v13 manifest + code footguns',\n },\n args: {\n path: {\n type: 'positional',\n description: 'Project root to scan (defaults to the current directory)',\n required: false,\n },\n json: {\n type: 'boolean',\n default: false,\n description: 'Emit a machine-readable JSON report instead of markdown',\n },\n strict: {\n type: 'boolean',\n default: false,\n description: 'Exit non-zero on any finding (default: only HIGH triggers a non-zero exit)',\n },\n },\n async run({ args }) {\n try {\n const result = await runAuditCommand({\n cwd: typeof args.path === 'string' ? args.path : undefined,\n format: args.json === true ? 'json' : 'markdown',\n strict: args.strict === true,\n });\n // Set exitCode instead of calling process.exit so any pending stdout\n // writes (the JSON / markdown report) get flushed before the process\n // tears down. process.exit(1) would truncate large reports on the\n // exact runs CI needs them intact.\n if (result.exitCode !== 0) process.exitCode = result.exitCode;\n } catch (err) {\n console.error(err instanceof Error ? err.message : String(err));\n process.exitCode = 1;\n }\n },\n});\n\nexport const main = defineCommand({\n meta: {\n name: 'vttforge',\n version: VTTFORGE_CLI_VERSION,\n description:\n 'VTTForge CLI: scaffold, dev, build and audit for Foundry v13+ systems and modules',\n },\n subCommands: {\n init,\n dev,\n build,\n audit,\n },\n});\n","#!/usr/bin/env node\n/**\n * vttforge bin: the executable entry.\n *\n * Nothing but the launch. The command tree lives in `cli.ts` so tests can\n * import it without running the CLI.\n */\nimport { runMain } from 'citty';\nimport { main } from './cli.js';\n\nrunMain(main);\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAa,OAAO,cAAc;CAChC,MAAM;EACJ,MAAM;EACN,aAAa;CACf;CACA,MAAM;EACJ,MAAM;GACJ,MAAM;GACN,aAAa;GACb,UAAU;EACZ;EACA,MAAM;GACJ,MAAM;GACN,aAAa;EACf;EACA,MAAM;GACJ,MAAM;GACN,aAAa;EACf;EACA,IAAI;GACF,MAAM;GACN,aAAa;EACf;EACA,OAAO;GACL,MAAM;GACN,aAAa;EACf;EACA,aAAa;GACX,MAAM;GACN,aAAa;EACf;EACA,QAAQ;GACN,MAAM;GACN,aAAa;EACf;EACA,SAAS;GACP,MAAM;GACN,aAAa;EACf;EAIA,KAAK;GACH,MAAM;GACN,OAAO;GACP,SAAS;GACT,aAAa;EACf;EAIA,SAAS;GACP,MAAM;GACN,SAAS;GACT,aAAa;EACf;EACA,KAAK;GACH,MAAM;GACN,SAAS;GACT,aAAa;EACf;CACF;CACA,MAAM,IAAI,EAAE,QAAQ;EAClB,IAAI;GACF,MAAM,QAAQ;IACZ,MAAM,OAAO,KAAK,SAAS,WAAW,KAAK,OAAO,KAAA;IAClD,MAAM,OAAO,KAAK,SAAS,WAAY,KAAK,OAA+B,KAAA;IAC3E,MAAM,OAAO,KAAK,SAAS,WAAY,KAAK,OAAuB,KAAA;IACnE,IAAI,OAAO,KAAK,OAAO,WAAW,KAAK,KAAK,KAAA;IAC5C,OAAO,OAAO,KAAK,UAAU,WAAW,KAAK,QAAQ,KAAA;IACrD,aAAa,OAAO,KAAK,gBAAgB,WAAW,KAAK,cAAc,KAAA;IACvE,QAAQ,OAAO,KAAK,WAAW,WAAW,KAAK,SAAS,KAAA;IACxD,SAAS,OAAO,KAAK,YAAY,WAAW,KAAK,UAAU,KAAA;IAC3D,KAAK,KAAK,QAAQ;IAClB,WAAW,KAAK,YAAY;IAC5B,OAAO,KAAK,QAAQ;GACtB,CAAC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,MAAM;GACJ,MAAM;GACN,aAAa;GACb,UAAU;EACZ;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,aAAa;EACf;EACA,QAAQ;GACN,MAAM;GACN,SAAS;GACT,aAAa;EACf;CACF;CACA,MAAM,IAAI,EAAE,QAAQ;EAClB,IAAI;GACF,MAAM,SAAS,MAAM,gBAAgB;IACnC,KAAK,OAAO,KAAK,SAAS,WAAW,KAAK,OAAO,KAAA;IACjD,QAAQ,KAAK,SAAS,OAAO,SAAS;IACtC,QAAQ,KAAK,WAAW;GAC1B,CAAC;GAKD,IAAI,OAAO,aAAa,GAAG,QAAQ,WAAW,OAAO;EACvD,SAAS,KAAK;GACZ,QAAQ,MAAM,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG,CAAC;GAC9D,QAAQ,WAAW;EACrB;CACF;AACF,CAAC;AAED,MAAa,OAAO,cAAc;CAChC,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aACE;CACJ;CACA,aAAa;EACX;EACA;EACA;EACA;CACF;AACF,CAAC;;;;;;;;;AC3MD,QAAQ,IAAI"}
|
package/dist/index.d.mts
CHANGED
|
@@ -8,11 +8,11 @@ import { ChildProcess } from "node:child_process";
|
|
|
8
8
|
* orchestrator aggregates them into an `AuditReport` which the reporter
|
|
9
9
|
* renders as JSON or markdown.
|
|
10
10
|
*
|
|
11
|
-
* The CLI never touches the source tree
|
|
11
|
+
* The CLI never touches the source tree; audit is purely read-only.
|
|
12
12
|
*/
|
|
13
13
|
type Severity = 'HIGH' | 'MEDIUM' | 'LOW';
|
|
14
14
|
interface RuleResult {
|
|
15
|
-
/** Stable identifier
|
|
15
|
+
/** Stable identifier, used by users to suppress / pin / look up specific rules. */
|
|
16
16
|
ruleId: string;
|
|
17
17
|
/** Human title. Shown in markdown report headers. */
|
|
18
18
|
title: string;
|
|
@@ -45,7 +45,7 @@ declare const SEVERITY_RANK: Record<Severity, number>;
|
|
|
45
45
|
/**
|
|
46
46
|
* A rule is a plain function over the project root. Manifest rules parse
|
|
47
47
|
* `system.json` / `module.json`; source rules walk `scripts/` / `src/`.
|
|
48
|
-
* Rules return their own findings
|
|
48
|
+
* Rules return their own findings; the orchestrator stitches them
|
|
49
49
|
* together. Pure functions over the filesystem so tests inject tmp dirs.
|
|
50
50
|
*/
|
|
51
51
|
type RuleFn = (cwd: string) => Promise<RuleResult[]> | RuleResult[];
|
|
@@ -79,7 +79,7 @@ interface AuditOptions {
|
|
|
79
79
|
format?: ReportFormat;
|
|
80
80
|
/**
|
|
81
81
|
* When true, MEDIUM and LOW findings also trigger a non-zero exit.
|
|
82
|
-
* Default false
|
|
82
|
+
* Default false: HIGH-only is the canonical "block CI" line.
|
|
83
83
|
*/
|
|
84
84
|
strict?: boolean;
|
|
85
85
|
/** Custom writer (tests). Defaults to process.stdout.write. */
|
|
@@ -99,12 +99,12 @@ declare function runAuditCommand(options?: AuditOptions): Promise<AuditResult>;
|
|
|
99
99
|
* The vite plugin emits the manifest into `dist/` during build, so the CLI
|
|
100
100
|
* commands that come after a build (dev's initial symlink, build's release
|
|
101
101
|
* zip) read from there rather than walking source. This file is intentionally
|
|
102
|
-
* tiny
|
|
102
|
+
* tiny: we extract just the fields the CLI cares about and surface the
|
|
103
103
|
* rest as `raw` for any consumer that wants more.
|
|
104
104
|
*/
|
|
105
105
|
type PackageType = 'system' | 'module';
|
|
106
106
|
interface FoundryManifest {
|
|
107
|
-
/** Manifest id
|
|
107
|
+
/** Manifest id: folder name Foundry serves the package under. */
|
|
108
108
|
id: string;
|
|
109
109
|
/** Semver-ish version string from the manifest. */
|
|
110
110
|
version: string;
|
|
@@ -116,7 +116,7 @@ interface FoundryManifest {
|
|
|
116
116
|
/**
|
|
117
117
|
* Locate and parse the Foundry manifest inside the given dist directory.
|
|
118
118
|
* Prefers `system.json`, falls back to `module.json` (a single dist can't
|
|
119
|
-
* be both
|
|
119
|
+
* be both; the vite plugin emits exactly one based on the project type).
|
|
120
120
|
*
|
|
121
121
|
* Throws if neither file exists, required fields are missing/non-string,
|
|
122
122
|
* or the id/version contain characters that would let downstream `join()`
|
|
@@ -170,7 +170,7 @@ declare function setupDevSymlink(opts: {
|
|
|
170
170
|
/**
|
|
171
171
|
* Tear down a dev symlink iff it still points at the expected source.
|
|
172
172
|
* Refuses to remove a symlink that another `vttforge dev` session (or a
|
|
173
|
-
* manual `ln -s`) has since redirected
|
|
173
|
+
* manual `ln -s`) has since redirected. That link doesn't belong to us
|
|
174
174
|
* and removing it would silently disconnect their setup.
|
|
175
175
|
*/
|
|
176
176
|
declare function cleanupDevSymlink(opts: {
|
|
@@ -180,7 +180,7 @@ declare function cleanupDevSymlink(opts: {
|
|
|
180
180
|
//#endregion
|
|
181
181
|
//#region src/commands/init.d.ts
|
|
182
182
|
/**
|
|
183
|
-
* `vttforge init
|
|
183
|
+
* `vttforge init`: interactive scaffolder.
|
|
184
184
|
*
|
|
185
185
|
* Honors CLI flags first, prompts for everything missing, then copies the
|
|
186
186
|
* matching template into the destination directory. Optionally `git init`s
|
|
@@ -203,7 +203,7 @@ interface InitOptions {
|
|
|
203
203
|
/**
|
|
204
204
|
* Take the default for anything not supplied instead of asking.
|
|
205
205
|
*
|
|
206
|
-
* Required to scaffold without a terminal
|
|
206
|
+
* Required to scaffold without a terminal: a prompt with nothing to read
|
|
207
207
|
* from waits forever, which is no way to fail.
|
|
208
208
|
*/
|
|
209
209
|
yes?: boolean;
|
|
@@ -226,7 +226,7 @@ interface ResolvedInitOptions extends Required<Omit<InitOptions, 'cwd' | 'id' |
|
|
|
226
226
|
}
|
|
227
227
|
type TemplateVariant = 'system-ts' | 'system-js' | 'module-ts' | 'module-js';
|
|
228
228
|
/**
|
|
229
|
-
* Thrown when the scaffolder cannot continue
|
|
229
|
+
* Thrown when the scaffolder cannot continue: bad input, an existing
|
|
230
230
|
* destination, a cancelled prompt, etc. `runInit` propagates these instead
|
|
231
231
|
* of calling `process.exit`, so library consumers (tests, other CLIs) can
|
|
232
232
|
* catch and recover. The `vttforge` bin wraps `runInit` in a top-level
|
|
@@ -255,7 +255,7 @@ declare function runInit(options?: InitOptions): Promise<void>;
|
|
|
255
255
|
* The OS-default detection treats `XDG_DATA_HOME` (Linux) and `%LOCALAPPDATA%`
|
|
256
256
|
* (Windows) as part of the OS convention, not as Foundry-specific overrides.
|
|
257
257
|
*
|
|
258
|
-
* Everything here is pure
|
|
258
|
+
* Everything here is pure: `platform`, `env`, and `home` flow through
|
|
259
259
|
* options so tests can drive every branch without monkey-patching globals.
|
|
260
260
|
*/
|
|
261
261
|
/** Shape persisted to `<project>/.vttforge/config.json`. */
|
|
@@ -264,7 +264,7 @@ interface VTTForgeConfig {
|
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
266
|
* Return the OS-default Foundry user-data directory, or `null` on unknown
|
|
267
|
-
* platforms / missing platform-specific env vars. Does NOT check existence
|
|
267
|
+
* platforms / missing platform-specific env vars. Does NOT check existence;
|
|
268
268
|
* callers prompt the user when the suggested path doesn't resolve.
|
|
269
269
|
*/
|
|
270
270
|
declare function autoDetectFoundryDataDir(platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv, home?: string): string | null;
|
|
@@ -284,14 +284,14 @@ declare function saveConfig(cwd: string, config: VTTForgeConfig): Promise<void>;
|
|
|
284
284
|
* Resolve the packages directory (`Data/systems/` or `Data/modules/`) under
|
|
285
285
|
* the given Foundry user-data root. Accepts the path Foundry itself runs
|
|
286
286
|
* with (the user-data folder, which contains `Data/`) OR the `Data/` folder
|
|
287
|
-
* directly
|
|
287
|
+
* directly; both are common in muscle memory.
|
|
288
288
|
*
|
|
289
289
|
* The returned path is not guaranteed to exist yet; callers `mkdir -p` it
|
|
290
290
|
* before creating the symlink.
|
|
291
291
|
*/
|
|
292
292
|
declare function foundryPackagesDir(dataRoot: string, type: 'system' | 'module'): string;
|
|
293
293
|
interface ResolveDataDirOptions {
|
|
294
|
-
/** Project root
|
|
294
|
+
/** Project root: also where `.vttforge/config.json` is read/written. */
|
|
295
295
|
cwd: string;
|
|
296
296
|
/** `--data-dir` flag value. Skips persistence and prompting when present. */
|
|
297
297
|
override?: string;
|
|
@@ -299,7 +299,7 @@ interface ResolveDataDirOptions {
|
|
|
299
299
|
* Interactive prompt for the first run. Receives the OS-default path
|
|
300
300
|
* (may be `null` on unknown platforms) and resolves with the chosen path,
|
|
301
301
|
* or `null` if the user cancelled. When undefined, the function refuses
|
|
302
|
-
* to ask and throws
|
|
302
|
+
* to ask and throws, appropriate for non-TTY contexts (CI, scripts).
|
|
303
303
|
*/
|
|
304
304
|
prompt?: (autoDetected: string | null) => Promise<string | null>;
|
|
305
305
|
/** Override `process.platform` (tests). */
|
|
@@ -324,7 +324,7 @@ declare function resolveFoundryDataDir(opts: ResolveDataDirOptions): Promise<str
|
|
|
324
324
|
* Strategy: read `npm_config_user_agent`, which pnpm/npm/bun/yarn all set when
|
|
325
325
|
* they spawn a child process (including `pnpm dlx`, `pnpm create`, etc.).
|
|
326
326
|
* Falls back to `pnpm` because that's the VTTForge house default and the
|
|
327
|
-
* most common Foundry-developer choice
|
|
327
|
+
* most common Foundry-developer choice, but any concrete signal in the
|
|
328
328
|
* environment wins over the default.
|
|
329
329
|
*/
|
|
330
330
|
type PackageManager = 'pnpm' | 'npm' | 'bun' | 'yarn';
|
|
@@ -332,7 +332,7 @@ declare function detectPackageManager(env?: NodeJS.ProcessEnv): PackageManager;
|
|
|
332
332
|
declare function installCommand(pm: PackageManager): string;
|
|
333
333
|
/**
|
|
334
334
|
* Detect a project's package manager by looking at which lockfile it
|
|
335
|
-
* ships. `dev` and `build` need this
|
|
335
|
+
* ships. `dev` and `build` need this: by the time the user runs
|
|
336
336
|
* `vttforge dev`, npm_config_user_agent reflects whatever shell launched
|
|
337
337
|
* the binary (often nothing in a global install), not how the project
|
|
338
338
|
* was bootstrapped. The lockfile is the project's own contract.
|
|
@@ -344,7 +344,7 @@ declare function detectProjectPackageManager(cwd: string, env?: NodeJS.ProcessEn
|
|
|
344
344
|
/**
|
|
345
345
|
* Argument vector to invoke `vite` (or any other locally-installed CLI)
|
|
346
346
|
* via the project's package manager. We always shell out through `<pm>
|
|
347
|
-
* exec` so the call works regardless of the linker's choices
|
|
347
|
+
* exec` so the call works regardless of the linker's choices. Yarn 4
|
|
348
348
|
* Plug'n'Play, pnpm's symlinked layout, npm's flattened node_modules,
|
|
349
349
|
* Bun's symlinked node_modules. Each manager exposes a uniform "run a
|
|
350
350
|
* locally-resolved binary in the project's dependency graph" command.
|
|
@@ -361,7 +361,7 @@ declare function execInvocation(pm: PackageManager, bin: string): [string, strin
|
|
|
361
361
|
* preserving the relative path. Directories are created lazily on first
|
|
362
362
|
* write.
|
|
363
363
|
*
|
|
364
|
-
* We intentionally avoid Handlebars or any other template engine
|
|
364
|
+
* We intentionally avoid Handlebars or any other template engine. The
|
|
365
365
|
* substitution surface is small (a flat string-to-string map), and bundling
|
|
366
366
|
* a dependency for ten lines of regex would be wasteful in a tool whose
|
|
367
367
|
* value is being fast to invoke.
|
|
@@ -409,14 +409,14 @@ declare function templatesRoot(): string;
|
|
|
409
409
|
* back to the project's `dist/` so Foundry serves freshly-built files as
|
|
410
410
|
* vite writes them. The win32 path matters: with `type: 'junction'` the
|
|
411
411
|
* operation works on standard Windows shells without Developer Mode, while
|
|
412
|
-
* `type: 'dir'` requires admin. We never silently fall back to copying
|
|
412
|
+
* `type: 'dir'` requires admin. We never silently fall back to copying;
|
|
413
413
|
* Foundry's HMR relies on live file mutation, and a copy snapshot defeats
|
|
414
414
|
* the loop. If the symlink fails, we surface the platform-specific fix.
|
|
415
415
|
*/
|
|
416
416
|
interface CreateLinkOptions {
|
|
417
417
|
/**
|
|
418
418
|
* Overwrite an existing symlink that points elsewhere. Real files and
|
|
419
|
-
* directories are never overwritten
|
|
419
|
+
* directories are never overwritten; that path needs explicit user
|
|
420
420
|
* action outside the tool.
|
|
421
421
|
*/
|
|
422
422
|
overwrite?: boolean;
|
|
@@ -440,7 +440,7 @@ declare function readLinkTarget(path: string): Promise<string | null>;
|
|
|
440
440
|
declare function createLink(target: string, source: string, options?: CreateLinkOptions): Promise<void>;
|
|
441
441
|
/**
|
|
442
442
|
* Remove a symlink at `path`. No-ops when the path doesn't exist. Throws
|
|
443
|
-
* when the path exists but isn't a symlink
|
|
443
|
+
* when the path exists but isn't a symlink; we never unlink real files
|
|
444
444
|
* or directories.
|
|
445
445
|
*/
|
|
446
446
|
declare function removeLink(path: string): Promise<void>;
|
|
@@ -492,5 +492,5 @@ declare function emitZip(opts: EmitZipOptions): Promise<EmitZipResult>;
|
|
|
492
492
|
//#region src/index.d.ts
|
|
493
493
|
declare const VTTFORGE_CLI_VERSION: string;
|
|
494
494
|
//#endregion
|
|
495
|
-
export { type AuditOptions, type AuditReport, type AuditResult, type BuildOptions, type CreateLinkOptions, type DevOptions, type EmitZipOptions, type EmitZipResult, type FoundryManifest, type InitOptions, type PackageManager, type PackageType, type ReportFormat, type ResolveDataDirOptions, type ResolvedInitOptions, type RuleFn, type RuleResult, SEVERITY_RANK, ScaffoldError, type ScaffoldOptions, type ScaffoldVars, type Severity, type TemplateVariant, VTTFORGE_CLI_VERSION, type VTTForgeConfig, ViteNotInstalledError, autoDetectFoundryDataDir, cleanupDevSymlink, configPath, createLink, detectPackageManager, detectProjectPackageManager, emitReleaseZip, emitZip, execInvocation, formatReport, foundryPackagesDir, installCommand, loadConfig, looksLikeFoundryDataDir, readLinkTarget, readManifest, removeLink, resolveFoundryDataDir, resolveViteInvocation, runAudit, runAuditCommand, runBuild, runDev, runInit, runManifestRules, runSourceRules, runViteBuildOnce, saveConfig, scaffold, setupDevSymlink, spawnViteWatch, substitute, templatesRoot };
|
|
495
|
+
export { type AuditOptions, type AuditReport, type AuditResult, type BuildOptions, type CreateLinkOptions, type DevOptions, type EmitZipOptions, type EmitZipResult, type FoundryManifest, type InitOptions, type PackageManager, type PackageType, type ReportFormat, type ResolveDataDirOptions, type ResolvedInitOptions, type RuleFn, type RuleResult, type RunAuditOptions, SEVERITY_RANK, ScaffoldError, type ScaffoldOptions, type ScaffoldVars, type Severity, type TemplateVariant, VTTFORGE_CLI_VERSION, type VTTForgeConfig, ViteNotInstalledError, autoDetectFoundryDataDir, cleanupDevSymlink, configPath, createLink, detectPackageManager, detectProjectPackageManager, emitReleaseZip, emitZip, execInvocation, formatReport, foundryPackagesDir, installCommand, loadConfig, looksLikeFoundryDataDir, readLinkTarget, readManifest, removeLink, resolveFoundryDataDir, resolveViteInvocation, runAudit, runAuditCommand, runBuild, runDev, runInit, runManifestRules, runSourceRules, runViteBuildOnce, saveConfig, scaffold, setupDevSymlink, spawnViteWatch, substitute, templatesRoot };
|
|
496
496
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as installCommand, C as ViteNotInstalledError, D as detectPackageManager, E as spawnViteWatch, F as SEVERITY_RANK, I as runSourceRules, L as runManifestRules, M as runAuditCommand, N as formatReport, O as detectProjectPackageManager, P as runAudit, S as emitZip, T as runViteBuildOnce, _ as createLink, a as substitute, b as emitReleaseZip, c as runDev, d as configPath, f as foundryPackagesDir, g as saveConfig, h as resolveFoundryDataDir, i as scaffold, j as readManifest, k as execInvocation, l as setupDevSymlink, m as looksLikeFoundryDataDir, n as ScaffoldError, o as templatesRoot, p as loadConfig, r as runInit, s as cleanupDevSymlink, t as VTTFORGE_CLI_VERSION, u as autoDetectFoundryDataDir, v as readLinkTarget, w as resolveViteInvocation, x as runBuild, y as removeLink } from "./src-
|
|
1
|
+
import { A as installCommand, C as ViteNotInstalledError, D as detectPackageManager, E as spawnViteWatch, F as SEVERITY_RANK, I as runSourceRules, L as runManifestRules, M as runAuditCommand, N as formatReport, O as detectProjectPackageManager, P as runAudit, S as emitZip, T as runViteBuildOnce, _ as createLink, a as substitute, b as emitReleaseZip, c as runDev, d as configPath, f as foundryPackagesDir, g as saveConfig, h as resolveFoundryDataDir, i as scaffold, j as readManifest, k as execInvocation, l as setupDevSymlink, m as looksLikeFoundryDataDir, n as ScaffoldError, o as templatesRoot, p as loadConfig, r as runInit, s as cleanupDevSymlink, t as VTTFORGE_CLI_VERSION, u as autoDetectFoundryDataDir, v as readLinkTarget, w as resolveViteInvocation, x as runBuild, y as removeLink } from "./src-Cnb6Trj5.mjs";
|
|
2
2
|
export { SEVERITY_RANK, ScaffoldError, VTTFORGE_CLI_VERSION, ViteNotInstalledError, autoDetectFoundryDataDir, cleanupDevSymlink, configPath, createLink, detectPackageManager, detectProjectPackageManager, emitReleaseZip, emitZip, execInvocation, formatReport, foundryPackagesDir, installCommand, loadConfig, looksLikeFoundryDataDir, readLinkTarget, readManifest, removeLink, resolveFoundryDataDir, resolveViteInvocation, runAudit, runAuditCommand, runBuild, runDev, runInit, runManifestRules, runSourceRules, runViteBuildOnce, saveConfig, scaffold, setupDevSymlink, spawnViteWatch, substitute, templatesRoot };
|