create-fesd-app 1.0.0-bate.79 → 1.0.0-bate.80
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/bin/create-fesd-app.mjs +3 -3
- package/package.json +1 -1
package/bin/create-fesd-app.mjs
CHANGED
@@ -101,10 +101,11 @@ const createPackageJson = async (packagePath, projectName) => {
|
|
101
101
|
}
|
102
102
|
};
|
103
103
|
|
104
|
-
const createGitignore = async (packagePath, oldName
|
104
|
+
const createGitignore = async (packagePath, oldName) => {
|
105
105
|
try {
|
106
106
|
const data = await promisesFs.readFile(packagePath + oldName, 'utf8');
|
107
|
-
await promisesFs.writeFile(packagePath +
|
107
|
+
await promisesFs.writeFile(packagePath + "/.gitignore", data, 'utf8');
|
108
|
+
await promisesFs.unlink(projectPath + oldName);
|
108
109
|
|
109
110
|
} catch (error) {
|
110
111
|
console.error(`Error editing .gitignore: ${error}`);
|
@@ -141,7 +142,6 @@ const installSetup = async (projectPath, projectName) => {
|
|
141
142
|
);
|
142
143
|
|
143
144
|
await createGitignore(projectPath, "/.npmignore", "/.gitignore")
|
144
|
-
await promisesFs.unlink(projectPath + "/.npmignore");
|
145
145
|
|
146
146
|
console.log(" ")
|
147
147
|
|