easy-soft-develop 2.0.179 → 2.0.181

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-develop",
3
- "version": "2.0.179",
3
+ "version": "2.0.181",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
6
  "bugs": {
@@ -9,6 +9,7 @@ const {
9
9
  mkdirSync,
10
10
  exec,
11
11
  cd,
12
+ existDirectorySync,
12
13
  } = require('../tools/meta');
13
14
  const {
14
15
  createDevelopFiles,
@@ -254,6 +255,16 @@ function createLernaProject(name) {
254
255
 
255
256
  cd(`./${lernaName}`);
256
257
 
258
+ if (!existDirectorySync(`./${lernaName}/.git`)) {
259
+ exec('git init -b main');
260
+
261
+ exec(`touch ./${lernaName}/README.md`);
262
+
263
+ exec('git add .');
264
+
265
+ exec("git commit -m 'Initial commit'");
266
+ }
267
+
257
268
  createLernaPackageJsonFile(lernaName);
258
269
  createLernaConfigFile(lernaName);
259
270
  createPnpmWorkspaceFile();