@akanjs/cli 0.0.49 → 0.0.51
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.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4222,7 +4222,9 @@ page.tsx_end
|
|
|
4222
4222
|
buildResult.outputFiles.map((file) => distPkg.writeFile(file.path, file.text));
|
|
4223
4223
|
if (["@akanjs/next", "@akanjs/common"].includes(pkg.name)) {
|
|
4224
4224
|
await import_promises3.default.rm(`${distPkg.cwdPath}/index.js`);
|
|
4225
|
-
await import_promises3.default.
|
|
4225
|
+
const files = await import_promises3.default.readdir(pkg.cwdPath);
|
|
4226
|
+
const tsFiles = files.filter((file) => file.endsWith(".ts") || file.endsWith(".tsx"));
|
|
4227
|
+
await Promise.all(tsFiles.map((file) => import_promises3.default.cp(`${pkg.cwdPath}/${file}`, `${distPkg.cwdPath}/${file}`)));
|
|
4226
4228
|
}
|
|
4227
4229
|
distPkg.writeJson("package.json", pkgPackageJson);
|
|
4228
4230
|
}
|