rigjs 2.1.11 → 2.1.12

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.
@@ -135,8 +135,8 @@ const checkDepsValid = (rigJson5) => {
135
135
  print.error(`checkDepsValid failed:${e.message}`);
136
136
  valid = false;
137
137
  }
138
- return valid;
139
138
  }
139
+ return valid;
140
140
  }
141
141
  //加载命令控制器
142
142
  const load = async (cmd) => {
@@ -145,9 +145,8 @@ const load = async (cmd) => {
145
145
  //读取package.rig.json5
146
146
  let rigJson5Str = fs.readFileSync(path.join(process.cwd(), 'package.rig.json5'));
147
147
  let rigJson5 = json5.parse(rigJson5Str);
148
- if (!validate(rigJson5)) process.exit(1);
149
- if (!checkDepsValid(rigJson5)) process.exit(1);
150
- //重置rigs
148
+ if (!validate(rigJson5)) setTimeout(()=>{process.exit(1)},200)
149
+ if (!checkDepsValid(rigJson5)) setTimeout(()=>{process.exit(1)},200)
151
150
  if (!(fs.existsSync('./rigs') && fs.lstatSync('./rigs').isDirectory())) {
152
151
  print.info('create folder rigs');
153
152
  fs.mkdirSync('rigs');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rigjs",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "description": "A multi-repos dev tool based on yarn and git.Rig is inspired by cocoapods. Not like those monorepo solutions,rig is a tool for organizing multi-repos.",
5
5
  "keywords": [
6
6
  "modular",