create-nexu 1.4.0 → 1.4.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 +13 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1049,6 +1049,19 @@ ${change.relativePath}:`));
|
|
|
1049
1049
|
if (deletedFilesCount > 0) {
|
|
1050
1050
|
cleanEmptyDirectories(projectDir);
|
|
1051
1051
|
}
|
|
1052
|
+
const dotfilesToRename = [
|
|
1053
|
+
{ src: path4.join(projectDir, "gitignore"), dest: path4.join(projectDir, ".gitignore") },
|
|
1054
|
+
{ src: path4.join(projectDir, "apps", "gitkeep"), dest: path4.join(projectDir, "apps", ".gitkeep") },
|
|
1055
|
+
{
|
|
1056
|
+
src: path4.join(projectDir, "services", "postgres", "init", "gitkeep"),
|
|
1057
|
+
dest: path4.join(projectDir, "services", "postgres", "init", ".gitkeep")
|
|
1058
|
+
}
|
|
1059
|
+
];
|
|
1060
|
+
for (const { src, dest } of dotfilesToRename) {
|
|
1061
|
+
if (fs4.existsSync(src)) {
|
|
1062
|
+
fs4.renameSync(src, dest);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1052
1065
|
if (selectedCategories.includes("dependencies") && dependencyChanges) {
|
|
1053
1066
|
const templatePkgPath = path4.join(templateDir, "package.json");
|
|
1054
1067
|
const projectPkgPath = path4.join(projectDir, "package.json");
|