@vttforge/cli 0.18.6 → 0.18.8

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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # @vttforge/cli
2
2
 
3
+ ## 0.18.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 5ba1131: The scaffold templates pinned `packageManager: pnpm@11.25.0` and
8
+ `pnpm/action-setup@v4`, both a major version behind current pnpm (12.4.1)
9
+ and the action VTTForge's own CI already runs (`@v6`). A project scaffolded
10
+ today inherited both stale pins. Bumped all four templates
11
+ (`system-ts`, `system-js`, `module-ts`, `module-js`) to match.
12
+ - 39ca019: READMEs led with `pnpm add`/`pnpm create` even though VTTForge's own
13
+ toolchain has run on Bun since the pnpm-to-bun migration. Every install
14
+ and scaffold example now leads with `bun`; the CLI's multi-package-manager
15
+ detection stays real and unchanged, `pnpm`/`npm`/`yarn` still work and are
16
+ listed as alternatives where they were already shown that way.
17
+
18
+ ## 0.18.7
19
+
20
+ ### Patch Changes
21
+
22
+ - 9b091fc: The `system-ts` and `module-ts` templates pin `@vttforge/types` to `^0.11.0`.
23
+ On a 0.x line a caret pins the minor, so the old pin would scaffold a project
24
+ that cannot resolve the version this release publishes.
25
+
3
26
  ## 0.18.6
4
27
 
5
28
  ### Patch Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Scaffold, dev loop, release build, lint and audit for Foundry VTT v14+ systems and modules.
4
4
 
5
5
  ```bash
6
- pnpm create vttforge my-system # same as: npx @vttforge/cli init my-system
6
+ bun create vttforge my-system # same as: bunx @vttforge/cli init my-system
7
7
  ```
8
8
 
9
9
  ## Commands
@@ -18,7 +18,7 @@ vttforge audit [dir] [--json] [--strict]
18
18
  vttforge migrate [dir] [--write] [--strict] [--json] [--data-models] [--sheets]
19
19
  ```
20
20
 
21
- **`init`** writes a runnable system or module into `<name>/` from one of four templates (`system-ts`, `system-js`, `module-ts`, `module-js`). It asks for what you did not pass, or takes defaults with `--yes`, so it works in CI. It detects the package manager that invoked it (`pnpm`, `npm`, `bun`, `yarn`), installs, and runs `git init`.
21
+ **`init`** writes a runnable system or module into `<name>/` from one of four templates (`system-ts`, `system-js`, `module-ts`, `module-js`). It asks for what you did not pass, or takes defaults with `--yes`, so it works in CI. It detects the package manager that invoked it (`bun`, `npm`, `pnpm`, `yarn`), installs, and runs `git init`.
22
22
 
23
23
  **`dev`** builds once, links `dist/` into Foundry's data directory under `Data/<systems|modules>/<id>/`, installs the `@vttforge/dev-module` companion, and watches. A saved template redraws the open sheet in place, and a saved stylesheet swaps the CSS. The first run asks where Foundry keeps its data and saves the answer to `.vttforge/config.json`; `--foundry-data` or `FOUNDRY_DATA_DIR` overrides it. If Foundry runs in a container it cannot follow the symlink, and the command prints the compose mount to use instead.
24
24
 
package/dist/bin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as runDev, b as maskComments, g as definesName, h as bareUsePattern, i as runInit, m as LEGACY_GLOBALS, n as runLintCommand, p as REMOVED_UTILS, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, v as _internal, x as runReleaseRules } from "./src-BYW3oRse.mjs";
2
+ import { a as runDev, b as maskComments, g as definesName, h as bareUsePattern, i as runInit, m as LEGACY_GLOBALS, n as runLintCommand, p as REMOVED_UTILS, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, v as _internal, x as runReleaseRules } from "./src-CezN6cK3.mjs";
3
3
  import { existsSync } from "node:fs";
4
4
  import { dirname, join, relative, resolve } from "node:path";
5
5
  import { mkdir, readFile, stat, writeFile } from "node:fs/promises";
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { S as runManifestRules, _ as SEVERITY_RANK, a as runDev, c as emitZip, d as formatReport, f as runAudit, i as runInit, l as readManifest, n as runLintCommand, o as emitReleaseZip, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, y as runSourceRules } from "./src-BYW3oRse.mjs";
1
+ import { S as runManifestRules, _ as SEVERITY_RANK, a as runDev, c as emitZip, d as formatReport, f as runAudit, i as runInit, l as readManifest, n as runLintCommand, o as emitReleaseZip, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, y as runSourceRules } from "./src-CezN6cK3.mjs";
2
2
  export { SEVERITY_RANK, ScaffoldError, VTTFORGE_CLI_VERSION, emitReleaseZip, emitZip, formatReport, readManifest, runAudit, runAuditCommand, runBuild, runDev, runInit, runLintCommand, runManifestRules, runSourceRules };
@@ -11,7 +11,7 @@ import { createServer } from "node:http";
11
11
  import { homedir } from "node:os";
12
12
  import { promisify } from "node:util";
13
13
  //#region package.json
14
- var version = "0.18.6";
14
+ var version = "0.18.8";
15
15
  //#endregion
16
16
  //#region src/audit/manifest-rules.ts
17
17
  /**
@@ -2261,9 +2261,10 @@ async function readManifest(distDir) {
2261
2261
  *
2262
2262
  * Strategy: read `npm_config_user_agent`, which pnpm/npm/bun/yarn all set when
2263
2263
  * they spawn a child process (including `pnpm dlx`, `pnpm create`, etc.).
2264
- * Falls back to `pnpm` because that's the VTTForge house default and the
2265
- * most common Foundry-developer choice, but any concrete signal in the
2266
- * environment wins over the default.
2264
+ * Falls back to `pnpm` because that's the most common Foundry-developer
2265
+ * choice, but any concrete signal in the environment wins over the default.
2266
+ * (VTTForge's own tooling runs on Bun; this default is about the ecosystem
2267
+ * this CLI scaffolds into, not about VTTForge itself.)
2267
2268
  */
2268
2269
  /**
2269
2270
  * @internal Implementation detail of the `vttforge` binary. Not supported for
@@ -3815,4 +3816,4 @@ const VTTFORGE_CLI_VERSION = version;
3815
3816
  //#endregion
3816
3817
  export { runManifestRules as S, SEVERITY_RANK as _, runDev as a, maskComments as b, emitZip as c, formatReport as d, runAudit as f, definesName as g, bareUsePattern as h, runInit as i, readManifest as l, LEGACY_GLOBALS as m, runLintCommand as n, emitReleaseZip as o, REMOVED_UTILS as p, ScaffoldError as r, runBuild as s, VTTFORGE_CLI_VERSION as t, runAuditCommand as u, _internal as v, runReleaseRules as x, runSourceRules as y };
3817
3818
 
3818
- //# sourceMappingURL=src-BYW3oRse.mjs.map
3819
+ //# sourceMappingURL=src-CezN6cK3.mjs.map