ai-forge-cli 0.2.0 → 0.2.1
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-
|
|
22
|
+
init: () => import("./init-W4ETGUSV.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)
|
|
@@ -33,6 +33,9 @@ function runInteractive(cmd, args, cwd) {
|
|
|
33
33
|
proc.on("error", reject);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
+
function stripJsonComments(str) {
|
|
37
|
+
return str.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, "");
|
|
38
|
+
}
|
|
36
39
|
var init_default = defineCommand({
|
|
37
40
|
meta: {
|
|
38
41
|
name: "init",
|
|
@@ -91,7 +94,8 @@ var init_default = defineCommand({
|
|
|
91
94
|
await writeFile(pkgPath, JSON.stringify(pkg, null, 2));
|
|
92
95
|
logger.success("Updated package.json with Convex & Tailwind deps");
|
|
93
96
|
const tsconfigPath = join(projectDir, "tsconfig.json");
|
|
94
|
-
const
|
|
97
|
+
const tsconfigContent = await readFile(tsconfigPath);
|
|
98
|
+
const tsconfig = JSON.parse(stripJsonComments(tsconfigContent));
|
|
95
99
|
tsconfig.compilerOptions = {
|
|
96
100
|
...tsconfig.compilerOptions,
|
|
97
101
|
paths: {
|