@modern-js/app-tools 2.56.0 → 2.56.2-alpha.0
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.
@@ -71,12 +71,6 @@ const handleDependencies = async ({ appDir, serverRootDir, includeEntries, trace
|
|
71
71
|
const packageJsonPath = match ? import_node_path.default.join(match[0], "package.json") : await (0, import_utils.pkgUp)({
|
72
72
|
cwd: import_node_path.default.dirname(filePath)
|
73
73
|
});
|
74
|
-
if (packageJsonPath) {
|
75
|
-
const packageJson = await import_utils.fs.readJSON(packageJsonPath);
|
76
|
-
pkgPath = baseDir = import_node_path.default.dirname(packageJsonPath);
|
77
|
-
subpath = import_node_path.default.relative(baseDir, filePath);
|
78
|
-
pkgName = packageJson.name;
|
79
|
-
}
|
80
74
|
}
|
81
75
|
if (!baseDir) {
|
82
76
|
return;
|
@@ -34,7 +34,7 @@ var handleDependencies = function() {
|
|
34
34
|
4,
|
35
35
|
Promise.all(_to_consumable_array(fileTrace.reasons.entries()).map(function() {
|
36
36
|
var _ref2 = _async_to_generator(function(param2) {
|
37
|
-
var _param, _path, reasons, filePath, baseDir, pkgName2, subpath, pkgPath, parsed, MODERN_UTILS_PATH, MODERN_UTILS_PATH_REGEX, match, packageJsonPath, _tmp,
|
37
|
+
var _param, _path, reasons, filePath, baseDir, pkgName2, subpath, pkgPath, parsed, MODERN_UTILS_PATH, MODERN_UTILS_PATH_REGEX, match, packageJsonPath, _tmp, parents, tracedFile2;
|
38
38
|
return _ts_generator(this, function(_state2) {
|
39
39
|
switch (_state2.label) {
|
40
40
|
case 0:
|
@@ -77,7 +77,7 @@ var handleDependencies = function() {
|
|
77
77
|
pkgPath = path.join(baseDir, pkgName2);
|
78
78
|
return [
|
79
79
|
3,
|
80
|
-
|
80
|
+
7
|
81
81
|
];
|
82
82
|
case 3:
|
83
83
|
MODERN_UTILS_PATH = "packages/toolkit/utils";
|
@@ -105,22 +105,8 @@ var handleDependencies = function() {
|
|
105
105
|
_state2.label = 6;
|
106
106
|
case 6:
|
107
107
|
packageJsonPath = _tmp;
|
108
|
-
|
109
|
-
return [
|
110
|
-
3,
|
111
|
-
8
|
112
|
-
];
|
113
|
-
return [
|
114
|
-
4,
|
115
|
-
fse.readJSON(packageJsonPath)
|
116
|
-
];
|
108
|
+
_state2.label = 7;
|
117
109
|
case 7:
|
118
|
-
packageJson = _state2.sent();
|
119
|
-
pkgPath = baseDir = path.dirname(packageJsonPath);
|
120
|
-
subpath = path.relative(baseDir, filePath);
|
121
|
-
pkgName2 = packageJson.name;
|
122
|
-
_state2.label = 8;
|
123
|
-
case 8:
|
124
110
|
if (!baseDir) {
|
125
111
|
return [
|
126
112
|
2
|
@@ -132,7 +118,7 @@ var handleDependencies = function() {
|
|
132
118
|
return resolveTracedPath(base, p);
|
133
119
|
}))
|
134
120
|
];
|
135
|
-
case
|
121
|
+
case 8:
|
136
122
|
parents = _state2.sent();
|
137
123
|
tracedFile2 = {
|
138
124
|
path: filePath,
|
@@ -38,12 +38,6 @@ const handleDependencies = async ({ appDir, serverRootDir, includeEntries, trace
|
|
38
38
|
const packageJsonPath = match ? path.join(match[0], "package.json") : await pkgUp({
|
39
39
|
cwd: path.dirname(filePath)
|
40
40
|
});
|
41
|
-
if (packageJsonPath) {
|
42
|
-
const packageJson = await fse.readJSON(packageJsonPath);
|
43
|
-
pkgPath = baseDir = path.dirname(packageJsonPath);
|
44
|
-
subpath = path.relative(baseDir, filePath);
|
45
|
-
pkgName = packageJson.name;
|
46
|
-
}
|
47
41
|
}
|
48
42
|
if (!baseDir) {
|
49
43
|
return;
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.56.0",
|
18
|
+
"version": "2.56.2-alpha.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -87,20 +87,20 @@
|
|
87
87
|
"mlly": "^1.6.1",
|
88
88
|
"pkg-types": "^1.1.0",
|
89
89
|
"std-env": "^3.7.0",
|
90
|
-
"@modern-js/core": "2.56.
|
91
|
-
"@modern-js/node-bundle-require": "2.56.
|
92
|
-
"@modern-js/plugin": "2.56.
|
93
|
-
"@modern-js/plugin
|
94
|
-
"@modern-js/plugin-
|
95
|
-
"@modern-js/
|
96
|
-
"@modern-js/
|
97
|
-
"@modern-js/rsbuild-plugin-esbuild": "2.56.
|
98
|
-
"@modern-js/
|
99
|
-
"@modern-js/
|
100
|
-
"@modern-js/
|
101
|
-
"@modern-js/
|
102
|
-
"@modern-js/
|
103
|
-
"@modern-js/
|
90
|
+
"@modern-js/core": "2.56.1",
|
91
|
+
"@modern-js/node-bundle-require": "2.56.1",
|
92
|
+
"@modern-js/plugin-i18n": "2.56.1",
|
93
|
+
"@modern-js/plugin": "2.56.1",
|
94
|
+
"@modern-js/plugin-lint": "2.56.1",
|
95
|
+
"@modern-js/server-utils": "2.56.1",
|
96
|
+
"@modern-js/uni-builder": "2.56.1",
|
97
|
+
"@modern-js/rsbuild-plugin-esbuild": "2.56.1",
|
98
|
+
"@modern-js/types": "2.56.1",
|
99
|
+
"@modern-js/plugin-data-loader": "2.56.1",
|
100
|
+
"@modern-js/utils": "2.56.1",
|
101
|
+
"@modern-js/server-core": "2.56.1",
|
102
|
+
"@modern-js/prod-server": "2.56.1",
|
103
|
+
"@modern-js/server": "2.56.1"
|
104
104
|
},
|
105
105
|
"devDependencies": {
|
106
106
|
"@rsbuild/plugin-swc": "1.0.1-beta.3",
|
@@ -112,8 +112,8 @@
|
|
112
112
|
"tsconfig-paths": "^4.2.0",
|
113
113
|
"typescript": "^5",
|
114
114
|
"webpack": "^5.93.0",
|
115
|
-
"@scripts/build": "2.56.
|
116
|
-
"@scripts/jest-config": "2.56.
|
115
|
+
"@scripts/build": "2.56.1",
|
116
|
+
"@scripts/jest-config": "2.56.1"
|
117
117
|
},
|
118
118
|
"sideEffects": false,
|
119
119
|
"publishConfig": {
|