@dcloudio/uni-cli-shared 2.0.1-alpha-36920221118002 → 2.0.1-alpha-3061020221121002

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/uts/utils.js CHANGED
@@ -32,6 +32,7 @@ Please run \`${command}\` and try again.`
32
32
  }
33
33
 
34
34
  module.exports = {
35
+ version: require('../../package.json').version,
35
36
  normalizePath,
36
37
  installDepTips
37
38
  }
package/lib/uts/uts.js CHANGED
@@ -88,11 +88,11 @@ function resolveUTSCompiler() {
88
88
  });
89
89
  }
90
90
  catch (e) {
91
- let version = require('@dcloudio/uni-cli-shared/package.json').version;
92
- if (version.startsWith('2.0.')) {
93
- version = '^3.0.0-alpha-3060920221117001';
91
+ let utsCompilerVersion = utils_1.version;
92
+ if (utils_1.version.startsWith('2.0.')) {
93
+ utsCompilerVersion = '^3.0.0-alpha-3060920221117001';
94
94
  }
95
- console.error((0, utils_1.installDepTips)('devDependencies', '@dcloudio/uni-uts-v1', version));
95
+ console.error((0, utils_1.installDepTips)('devDependencies', '@dcloudio/uni-uts-v1', utsCompilerVersion));
96
96
  process.exit(0);
97
97
  }
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "2.0.1-alpha-36920221118002",
3
+ "version": "2.0.1-alpha-3061020221121002",
4
4
  "description": "uni-cli-shared",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -25,5 +25,5 @@
25
25
  "postcss-urlrewrite": "^0.2.2",
26
26
  "strip-json-comments": "^2.0.1"
27
27
  },
28
- "gitHead": "4dcf0ef2c510fee51b7d6d82d9e16683c1c4d8a1"
28
+ "gitHead": "55d7a28448a8588ecc25a6d2da6dc0ecd383e2a5"
29
29
  }