aiteam-x 0.9.2 → 0.9.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/package.json +1 -1
- package/scripts/cli.mjs +4 -0
package/package.json
CHANGED
package/scripts/cli.mjs
CHANGED
|
@@ -75,6 +75,10 @@ function copyMerge(src, dest) {
|
|
|
75
75
|
copyMerge(srcPath, destPath);
|
|
76
76
|
} else if (entry.name === "package.json" && fs.existsSync(destPath)) {
|
|
77
77
|
mergePackageJson(srcPath, destPath);
|
|
78
|
+
} else if (entry.name === "tsconfig.json" && fs.existsSync(destPath)) {
|
|
79
|
+
// Next.js requires its own tsconfig (path aliases @/* → ./*); always overwrite
|
|
80
|
+
fs.copyFileSync(srcPath, destPath);
|
|
81
|
+
console.log(C.dim(" tsconfig.json atualizado (necessário para o Next.js)"));
|
|
78
82
|
} else if (!fs.existsSync(destPath)) {
|
|
79
83
|
fs.copyFileSync(srcPath, destPath);
|
|
80
84
|
}
|