create-fesd-app 1.0.0-bate.79 → 1.0.0-bate.81

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.
@@ -101,10 +101,14 @@ const createPackageJson = async (packagePath, projectName) => {
101
101
  }
102
102
  };
103
103
 
104
- const createGitignore = async (packagePath, oldName, newName) => {
104
+ const createGitignore = async (packagePath) => {
105
+ const npmignorePath = packagePath + "/.npmignore"
106
+ const gitignorePath = packagePath + "/.gitignore"
107
+
105
108
  try {
106
- const data = await promisesFs.readFile(packagePath + oldName, 'utf8');
107
- await promisesFs.writeFile(packagePath + newName, data, 'utf8');
109
+ const data = await promisesFs.readFile(npmignorePath, 'utf8');
110
+ await promisesFs.writeFile(gitignorePath, data, 'utf8');
111
+ await promisesFs.unlink(npmignorePath);
108
112
 
109
113
  } catch (error) {
110
114
  console.error(`Error editing .gitignore: ${error}`);
@@ -140,8 +144,7 @@ const installSetup = async (projectPath, projectName) => {
140
144
  projectName
141
145
  );
142
146
 
143
- await createGitignore(projectPath, "/.npmignore", "/.gitignore")
144
- await promisesFs.unlink(projectPath + "/.npmignore");
147
+ await createGitignore(projectPath)
145
148
 
146
149
  console.log(" ")
147
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fesd-app",
3
- "version": "1.0.0-bate.79",
3
+ "version": "1.0.0-bate.81",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",