easy-soft-develop 2.0.180 → 2.0.182
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/package.json
CHANGED
|
@@ -255,10 +255,12 @@ function createLernaProject(name) {
|
|
|
255
255
|
|
|
256
256
|
cd(`./${lernaName}`);
|
|
257
257
|
|
|
258
|
-
if (!existDirectorySync(
|
|
259
|
-
exec('git init');
|
|
258
|
+
if (!existDirectorySync(`./.git`)) {
|
|
259
|
+
exec('git init -b main');
|
|
260
260
|
|
|
261
|
-
|
|
261
|
+
writeFileSync('./README.md', '', { coverFile: false });
|
|
262
|
+
|
|
263
|
+
exec('git add -A');
|
|
262
264
|
|
|
263
265
|
exec("git commit -m 'Initial commit'");
|
|
264
266
|
}
|