lucy-cli 0.7.5 → 0.7.6
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/init.js +4 -2
- package/package.json +1 -1
- package/src/init.ts +4 -2
package/dist/init.js
CHANGED
@@ -25,8 +25,10 @@ export async function init(moduleSettings, projectSettings) {
|
|
25
25
|
await editJson(join(moduleSettings.targetFolder, 'typedoc.json'), ['name'], [path.basename(moduleSettings.targetFolder)]);
|
26
26
|
await gitInit(moduleSettings.targetFolder, moduleSettings.settings.modules);
|
27
27
|
moduleSettings.settings.initialized = true;
|
28
|
-
fs.rm(join(moduleSettings.targetFolder, '.eslintrc.json'), { recursive: false })
|
29
|
-
|
28
|
+
await fs.rm(join(moduleSettings.targetFolder, '.eslintrc.json'), { recursive: false }).catch(e => {
|
29
|
+
console.log((`💩 ${red.underline.bold("=> Could not delete .eslintrc.json")}`));
|
30
|
+
});
|
31
|
+
await fs.writeFile(join(moduleSettings.targetFolder, 'lucy.json'), JSON.stringify(moduleSettings.settings, null, 2));
|
30
32
|
console.log(chalk.greenBright.underline('🐶 => Initialization done!'));
|
31
33
|
}
|
32
34
|
/**
|
package/package.json
CHANGED
package/src/init.ts
CHANGED
@@ -36,8 +36,10 @@ export async function init(moduleSettings: ModuleSettings, projectSettings: Proj
|
|
36
36
|
|
37
37
|
moduleSettings.settings.initialized = true;
|
38
38
|
|
39
|
-
fs.rm(join(moduleSettings.targetFolder, '.eslintrc.json'), { recursive: false })
|
40
|
-
|
39
|
+
await fs.rm(join(moduleSettings.targetFolder, '.eslintrc.json'), { recursive: false }).catch(e => {
|
40
|
+
console.log((`💩 ${red.underline.bold("=> Could not delete .eslintrc.json")}`));
|
41
|
+
});
|
42
|
+
await fs.writeFile(join(moduleSettings.targetFolder, 'lucy.json'), JSON.stringify(moduleSettings.settings, null, 2));
|
41
43
|
|
42
44
|
console.log(chalk.greenBright.underline('🐶 => Initialization done!'));
|
43
45
|
}
|