@tarojs/helper 3.5.0-alpha.12 → 3.5.0-alpha.15
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/dist/utils.js +7 -5
- package/package.json +3 -3
package/dist/utils.js
CHANGED
|
@@ -10,12 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.readConfig = exports.readPageConfig = exports.removeHeadSlash = exports.getModuleDefaultExport = exports.addPlatforms = exports.extnameExpRegOf = exports.readDirWithFileTypes = exports.getAllFilesInFloder = exports.unzip = exports.applyArrayedVisitors = exports.mergeVisitors = exports.recursiveMerge = exports.getInstalledNpmPkgVersion = exports.getInstalledNpmPkgPath = exports.pascalCase = exports.emptyDirectory = exports.cssImports = exports.generateConstantsList = exports.generateEnvList = exports.resolveScriptPath = exports.resolveMainFilePath = exports.isEmptyObject = exports.shouldUseCnpm = exports.shouldUseYarn = exports.getSystemUsername = exports.getConfig = exports.getTaroPath = exports.getUserHomeDir = exports.recursiveFindNodeModules = exports.printLog = exports.resolveStylePath = exports.promoteRelativePath = exports.replaceAliasPath = exports.isAliasPath = exports.isQuickAppPkg = exports.isNpmPkg = exports.isNodeModule = exports.normalizePath = void 0;
|
|
13
|
-
const fs = require("fs-extra");
|
|
14
|
-
const path = require("path");
|
|
15
|
-
const os = require("os");
|
|
16
|
-
const child_process = require("child_process");
|
|
17
13
|
const chalk = require("chalk");
|
|
14
|
+
const child_process = require("child_process");
|
|
15
|
+
const fs = require("fs-extra");
|
|
18
16
|
const lodash_1 = require("lodash");
|
|
17
|
+
const os = require("os");
|
|
18
|
+
const path = require("path");
|
|
19
19
|
const constants_1 = require("./constants");
|
|
20
20
|
const swcRegister_1 = require("./swcRegister");
|
|
21
21
|
const execSync = child_process.execSync;
|
|
@@ -522,7 +522,9 @@ function analyzeImport(filePath) {
|
|
|
522
522
|
if (!dep)
|
|
523
523
|
return;
|
|
524
524
|
importPaths.push(dep);
|
|
525
|
-
|
|
525
|
+
if (path.extname(dep) !== '.json') {
|
|
526
|
+
importPaths = importPaths.concat(analyzeImport(dep));
|
|
527
|
+
}
|
|
526
528
|
}
|
|
527
529
|
});
|
|
528
530
|
return importPaths;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/helper",
|
|
3
|
-
"version": "3.5.0-alpha.
|
|
3
|
+
"version": "3.5.0-alpha.15",
|
|
4
4
|
"description": "Taro Helper",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@babel/runtime": "^7.14.5",
|
|
43
43
|
"@swc/core": "^1.2.147",
|
|
44
44
|
"@swc/register": "^0.1.10",
|
|
45
|
-
"@tarojs/taro": "3.5.0-alpha.
|
|
45
|
+
"@tarojs/taro": "3.5.0-alpha.15",
|
|
46
46
|
"chalk": "3.0.0",
|
|
47
47
|
"chokidar": "^3.3.1",
|
|
48
48
|
"cross-spawn": "^7.0.3",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"resolve": "^1.6.0",
|
|
54
54
|
"yauzl": "2.10.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "9edede0410c2519797f29e681b00a752f5da9010"
|
|
57
57
|
}
|