rigjs 1.0.30 → 1.0.31
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.js +3 -1
- package/package.json +1 -1
package/lib/info/index.js
CHANGED
|
@@ -13,7 +13,9 @@ const info = () => {
|
|
|
13
13
|
print.info(`start checking modules`);
|
|
14
14
|
let rigJson5 = json5.parse(fs.readFileSync('package.rig.json5'));
|
|
15
15
|
for (let dep of rigJson5) {
|
|
16
|
-
let describeProcess = shell.exec(`git ls-remote --tags --refs --sort="version:refname" ${dep.source} | awk -F/
|
|
16
|
+
let describeProcess = process.platform === 'win32'?shell.exec(`git ls-remote --tags --refs --sort="version:refname" ${dep.source} | awk -F/ "END{print$NF}"`,
|
|
17
|
+
{silent: true}
|
|
18
|
+
): shell.exec(`git ls-remote --tags --refs --sort="version:refname" ${dep.source} | awk -F/ 'END{print$NF}'`,
|
|
17
19
|
{silent: true}
|
|
18
20
|
);
|
|
19
21
|
let remoteLatestTag = describeProcess.stdout.trim();
|
package/package.json
CHANGED