create-codebase-snapshot 0.20.9 → 0.20.12

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.
Files changed (2) hide show
  1. package/README.md +4 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -8,10 +8,9 @@ npm create codebase-snapshot
8
8
  ```
9
9
 
10
10
  It detects the project type, asks a handful of questions with sensible defaults,
11
- and writes the config file this project can actually load — `snapshot.config.ts`
12
- for an ES-module project on Node ≥ 22.6, `snapshot.config.mjs` everywhere else —
13
- listing **every setting at its default**, so the config doubles as the
14
- documentation.
11
+ and writes a data-only `snapshot.config.json` listing **every setting at its
12
+ default**, so the config doubles as the documentation and can be loaded by the
13
+ CLI, the MCP server and `serve` without executing repository code.
15
14
 
16
15
  ```bash
17
16
  npm create codebase-snapshot -- --preset react-vite --yes
@@ -27,7 +26,7 @@ npm create codebase-snapshot -- --preset react-vite --yes
27
26
 
28
27
  | Path | Notes |
29
28
  | :--- | :--- |
30
- | `snapshot.config.ts` / `snapshot.config.mjs` | Every setting at its default. `.ts` needs an ES-module `package.json` and Node ≥ 22.6; `.mjs` is used otherwise, because a `.ts` config is loaded with the enclosing package's module type. |
29
+ | `snapshot.config.json` | Every setting at its default. JSON is deliberate: the MCP and `serve` commands refuse executable repository configs. |
31
30
  | `package.json` → `scripts.snapshot`, `scripts.snapshot:validate` | Skipped when there is no `package.json` to hold them. |
32
31
  | `package.json` → `devDependencies` | `codebase-snapshot` at the version this scaffolder shipped with. A range you already declared is never overwritten. |
33
32
  | `.gitignore` | `snapshot/`, `snapshot.tmp/`. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-codebase-snapshot",
3
- "version": "0.20.9",
3
+ "version": "0.20.12",
4
4
  "description": "Scaffold a project that uses codebase-snapshot: write the config, npm scripts and dependency, then generate.",
5
5
  "license": "MIT",
6
6
  "author": "Ankur Halder <ankur.halder12345@gmail.com>",
@@ -23,7 +23,7 @@
23
23
  "LICENSE"
24
24
  ],
25
25
  "dependencies": {
26
- "codebase-snapshot": "^0.20.9"
26
+ "codebase-snapshot": "^0.20.12"
27
27
  },
28
28
  "engines": {
29
29
  "node": ">=18.0.0"