create-claude-cabinet 0.7.3 → 0.7.4
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/lib/db-setup.js
CHANGED
|
@@ -22,8 +22,9 @@ function setupDb(projectDir) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// pib-db.js uses ESM imports — ensure package.json has "type": "module"
|
|
25
|
+
// Skip this for the CC source repo itself (its CLI uses CommonJS)
|
|
25
26
|
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
26
|
-
if (pkg.type !== 'module') {
|
|
27
|
+
if (pkg.type !== 'module' && pkg.name !== 'create-claude-cabinet') {
|
|
27
28
|
pkg.type = 'module';
|
|
28
29
|
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
|
|
29
30
|
results.push('Set package.json type to "module"');
|
package/package.json
CHANGED
|
@@ -68,7 +68,14 @@ With user confirmation:
|
|
|
68
68
|
|
|
69
69
|
### 5. Post-Publish
|
|
70
70
|
|
|
71
|
-
- Re-run the
|
|
72
|
-
|
|
71
|
+
- Re-run the installer to update the local dogfood copy with the
|
|
72
|
+
just-published templates. **Match the existing install type** — check
|
|
73
|
+
`.ccrc.json` to see which modules are installed. If all 8 modules are
|
|
74
|
+
present, run a full install (`node bin/create-claude-cabinet.js --yes`).
|
|
75
|
+
If only lean modules, run `--lean`. Never downgrade a full install to
|
|
76
|
+
lean.
|
|
77
|
+
- After the install, verify `package.json` wasn't corrupted (the db-setup
|
|
78
|
+
module adds `"type": "module"` which may not be wanted — check if the
|
|
79
|
+
pre-install `package.json` had it and revert if not).
|
|
73
80
|
- Update `system-status.md` if it exists
|
|
74
81
|
- Report the published version and npm URL
|