create-githolon 0.51.0 → 0.52.0

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/index.mjs CHANGED
@@ -55,6 +55,14 @@ cpSync(TEMPLATE, targetDir, { recursive: true });
55
55
  // and the scaffold restores the dot.
56
56
  renameSync(path.join(targetDir, "gitignore"), path.join(targetDir, ".gitignore"));
57
57
 
58
+ // Same dotfile-restore for the VS Code workspace recommendation: the template ships
59
+ // `vscode/` (no dot; a leading-dot dir does not reliably survive `npm publish`), and
60
+ // the scaffold restores `.vscode/` so opening the project prompts installing the
61
+ // Nomos Law extension (the author-time check gate as red squiggles while typing).
62
+ if (existsSync(path.join(targetDir, "vscode"))) {
63
+ renameSync(path.join(targetDir, "vscode"), path.join(targetDir, ".vscode"));
64
+ }
65
+
58
66
  // Parameterize the scaffold to the app name. The generated typed client + its baked
59
67
  // hash const are NAMED off the package name (`__APP_NAME__`): the artifact filename
60
68
  // keeps the raw name (build/<app>.client.ts), the hash SYMBOL normalizes it to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-githolon",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "type": "module",
5
5
  "description": "Scaffold a Nomos domain package: the starter domain + compile config + live e2e. `npm create githolon my-app`.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["captain-app.nomos-law"]
3
+ }