@tarojs/taro-loader 3.6.6-alpha.1 → 3.6.6
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/util.js +2 -2
- package/lib/util.js.map +1 -1
- package/package.json +3 -3
package/lib/util.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPkgVersion = exports.getRootPath = void 0;
|
|
4
|
-
const
|
|
4
|
+
const helper_1 = require("@tarojs/helper");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
function getRootPath() {
|
|
7
7
|
return path.resolve(__dirname, '../');
|
|
@@ -9,7 +9,7 @@ function getRootPath() {
|
|
|
9
9
|
exports.getRootPath = getRootPath;
|
|
10
10
|
function getPkgVersion() {
|
|
11
11
|
const pkgPath = path.join(getRootPath(), 'package.json');
|
|
12
|
-
if (fs.existsSync(pkgPath)) {
|
|
12
|
+
if (helper_1.fs.existsSync(pkgPath)) {
|
|
13
13
|
return require(pkgPath).version;
|
|
14
14
|
}
|
|
15
15
|
return 'unknown';
|
package/lib/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAAA,2CAAmC;AACnC,6BAA4B;AAE5B,SAAgB,WAAW;IACzB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;AACvC,CAAC;AAFD,kCAEC;AAED,SAAgB,aAAa;IAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,cAAc,CAAC,CAAA;IAExD,IAAI,WAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QAC1B,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAA;KAChC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC;AARD,sCAQC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro-loader",
|
|
3
|
-
"version": "3.6.6
|
|
3
|
+
"version": "3.6.6",
|
|
4
4
|
"description": "Taro runner use webpack loader",
|
|
5
5
|
"author": "yuche <i@yuche.me>",
|
|
6
6
|
"homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-loader#readme",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"loader-utils": "^1.2.3",
|
|
25
|
-
"@tarojs/helper": "3.6.6
|
|
26
|
-
"@tarojs/taro": "3.6.6
|
|
25
|
+
"@tarojs/helper": "3.6.6",
|
|
26
|
+
"@tarojs/taro": "3.6.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"jest": "^29.3.1",
|