ai-forge-cli 0.2.0 → 0.2.2

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/dist/index.js CHANGED
@@ -19,7 +19,7 @@ var main = defineCommand({
19
19
  }
20
20
  },
21
21
  subCommands: {
22
- init: () => import("./init-WLRXSMFM.js").then((m) => m.default),
22
+ init: () => import("./init-S5H4HBFM.js").then((m) => m.default),
23
23
  "add:feature": () => import("./add-feature-YXWSRIVE.js").then((m) => m.default),
24
24
  check: () => import("./check-RCJRXIU5.js").then((m) => m.default),
25
25
  version: () => import("./version-VO3LHLDO.js").then((m) => m.default)
@@ -20,7 +20,6 @@ function runInteractive(cmd, args, cwd) {
20
20
  return new Promise((resolve, reject) => {
21
21
  const proc = spawn(cmd, args, {
22
22
  stdio: "inherit",
23
- shell: true,
24
23
  cwd
25
24
  });
26
25
  proc.on("close", (code) => {
@@ -33,6 +32,9 @@ function runInteractive(cmd, args, cwd) {
33
32
  proc.on("error", reject);
34
33
  });
35
34
  }
35
+ function stripJsonComments(str) {
36
+ return str.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, "");
37
+ }
36
38
  var init_default = defineCommand({
37
39
  meta: {
38
40
  name: "init",
@@ -91,7 +93,8 @@ var init_default = defineCommand({
91
93
  await writeFile(pkgPath, JSON.stringify(pkg, null, 2));
92
94
  logger.success("Updated package.json with Convex & Tailwind deps");
93
95
  const tsconfigPath = join(projectDir, "tsconfig.json");
94
- const tsconfig = JSON.parse(await readFile(tsconfigPath));
96
+ const tsconfigContent = await readFile(tsconfigPath);
97
+ const tsconfig = JSON.parse(stripJsonComments(tsconfigContent));
95
98
  tsconfig.compilerOptions = {
96
99
  ...tsconfig.compilerOptions,
97
100
  paths: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-forge-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript stack scaffolding & enforcement CLI for TanStack Start + Convex",
5
5
  "type": "module",
6
6
  "license": "MIT",