@webhikers/cli 1.1.20 → 1.1.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webhikers/cli",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "description": "CLI for creating and deploying webhikers projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -187,11 +187,11 @@ export async function createCommand(name) {
187
187
  JSON.stringify(deployConfig, null, 2) + "\n",
188
188
  "utf-8"
189
189
  );
190
- writeFileSync(
191
- resolve(projectDir, ".claude-guard.json"),
192
- JSON.stringify({ fileGuard: true, syncGuard: true, lastPull: null, allowedPaths: ["src/", "seed.ts"] }, null, 2) + "\n",
193
- "utf-8"
194
- );
190
+ const guardPath = resolve(projectDir, ".claude-guard.json");
191
+ const guard = JSON.parse(readFileSync(guardPath, "utf-8"));
192
+ guard.fileGuard = true;
193
+ guard.syncGuard = true;
194
+ writeFileSync(guardPath, JSON.stringify(guard, null, 2) + "\n", "utf-8");
195
195
  run(`git add .deploy.json .claude-guard.json && git commit -m "Enable guards + deploy config" && git push`, { cwd: projectDir });
196
196
  console.log(c.green(" ✓ .deploy.json + guards written"));
197
197