rigjs 3.0.18 → 3.0.20

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/lib/info/index.ts CHANGED
@@ -16,7 +16,10 @@ const info = () => {
16
16
  const depKeyArr = Object.keys(rigJson5.dependencies);
17
17
  for (let depKey of depKeyArr) {
18
18
  const dep = rigJson5.dependencies[depKey];
19
-
19
+ if (process.platform === 'win32'){
20
+ print.info(`skip info on windows`);
21
+ return;
22
+ }
20
23
  let describeProcess = process.platform === 'win32'?shell.exec(`git ls-remote --tags --refs --sort="version:refname" ${dep.source} | awk -F/ "END{print$NF}"`,
21
24
  {silent: true}
22
25
  ): shell.exec(`git ls-remote --tags --refs --sort="version:refname" ${dep.source} | awk -F/ 'END{print$NF}'`,
@@ -9,7 +9,7 @@ import fs from 'fs';
9
9
  import print from '../print';
10
10
  import RigConfig from '@/classes/RigConfig';
11
11
  import {Dep} from '@/classes/dependencies/Dep';
12
-
12
+ import pkg from '../../package.json';
13
13
  // let semverReg = /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/;
14
14
  const clone = (target:string, dep:Dep) => {
15
15
  print.info(`cloning ${dep.name}`);
@@ -24,6 +24,8 @@ const clone = (target:string, dep:Dep) => {
24
24
  }
25
25
  //加载命令控制器
26
26
  export default async (cmd:any) => {
27
+ print.info(`version:${pkg.version}`);
28
+
27
29
  print.info('start rig preinstall');
28
30
  try {
29
31
  //读取package.rig.json5,生成配置对象
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rigjs",
3
- "version": "3.0.18",
3
+ "version": "3.0.20",
4
4
  "description": "A multi-repos dev tool based on yarn and git.Rigjs is intended to be the simplest way to develop,share and deliver codes between different developers or different projects.",
5
5
  "keywords": [
6
6
  "modular",