@modern-js/app-tools 2.45.1-alpha.0 → 2.46.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.
@@ -143,7 +143,7 @@ const walk = async (dirname, rootDir, alias, entryName, isMainEntry, oldVersion)
|
|
143
143
|
const items = await import_utils.fs.readdir(dirname);
|
144
144
|
for (const item of items) {
|
145
145
|
const itemPath = path.join(dirname, item);
|
146
|
-
const itemPathWithAlias =
|
146
|
+
const itemPathWithAlias = (0, import_utils2.replaceWithAlias)(alias.basename, itemPath, alias.name);
|
147
147
|
const extname = path.extname(item);
|
148
148
|
const itemWithoutExt = item.slice(0, -extname.length);
|
149
149
|
const isDirectory2 = (await import_utils.fs.stat(itemPath)).isDirectory();
|
@@ -150,7 +150,7 @@ var walk = function() {
|
|
150
150
|
];
|
151
151
|
item = _step.value;
|
152
152
|
itemPath = path.join(dirname, item);
|
153
|
-
itemPathWithAlias =
|
153
|
+
itemPathWithAlias = replaceWithAlias(alias.basename, itemPath, alias.name);
|
154
154
|
extname = path.extname(item);
|
155
155
|
itemWithoutExt = item.slice(0, -extname.length);
|
156
156
|
return [
|
@@ -108,7 +108,7 @@ const walk = async (dirname, rootDir, alias, entryName, isMainEntry, oldVersion)
|
|
108
108
|
const items = await fs.readdir(dirname);
|
109
109
|
for (const item of items) {
|
110
110
|
const itemPath = path.join(dirname, item);
|
111
|
-
const itemPathWithAlias =
|
111
|
+
const itemPathWithAlias = replaceWithAlias(alias.basename, itemPath, alias.name);
|
112
112
|
const extname = path.extname(item);
|
113
113
|
const itemWithoutExt = item.slice(0, -extname.length);
|
114
114
|
const isDirectory2 = (await fs.stat(itemPath)).isDirectory();
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.46.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -69,38 +69,38 @@
|
|
69
69
|
"@babel/parser": "^7.22.15",
|
70
70
|
"@babel/traverse": "^7.23.2",
|
71
71
|
"@babel/types": "^7.23.0",
|
72
|
-
"@rsbuild/plugin-esbuild": "0.
|
73
|
-
"@rsbuild/plugin-node-polyfill": "0.
|
74
|
-
"@rsbuild/shared": "0.
|
72
|
+
"@rsbuild/plugin-esbuild": "0.3.3",
|
73
|
+
"@rsbuild/plugin-node-polyfill": "0.3.3",
|
74
|
+
"@rsbuild/shared": "0.3.3",
|
75
75
|
"es-module-lexer": "^1.1.0",
|
76
76
|
"esbuild": "0.17.19",
|
77
77
|
"@swc/helpers": "0.5.3",
|
78
|
-
"@modern-js/uni-builder": "2.
|
79
|
-
"@modern-js/
|
80
|
-
"@modern-js/
|
81
|
-
"@modern-js/node-bundle-require": "2.
|
82
|
-
"@modern-js/plugin
|
83
|
-
"@modern-js/plugin": "2.
|
84
|
-
"@modern-js/plugin-lint": "2.
|
85
|
-
"@modern-js/
|
86
|
-
"@modern-js/server": "2.
|
87
|
-
"@modern-js/server
|
88
|
-
"@modern-js/
|
89
|
-
"@modern-js/types": "2.
|
90
|
-
"@modern-js/
|
91
|
-
"@modern-js/server-core": "2.
|
92
|
-
"@modern-js/
|
78
|
+
"@modern-js/uni-builder": "2.46.0",
|
79
|
+
"@modern-js/core": "2.46.0",
|
80
|
+
"@modern-js/new-action": "2.46.0",
|
81
|
+
"@modern-js/node-bundle-require": "2.46.0",
|
82
|
+
"@modern-js/plugin": "2.46.0",
|
83
|
+
"@modern-js/plugin-data-loader": "2.46.0",
|
84
|
+
"@modern-js/plugin-lint": "2.46.0",
|
85
|
+
"@modern-js/plugin-i18n": "2.46.0",
|
86
|
+
"@modern-js/server": "2.46.0",
|
87
|
+
"@modern-js/prod-server": "2.46.0",
|
88
|
+
"@modern-js/server-utils": "2.46.0",
|
89
|
+
"@modern-js/types": "2.46.0",
|
90
|
+
"@modern-js/upgrade": "2.46.0",
|
91
|
+
"@modern-js/server-core": "2.46.0",
|
92
|
+
"@modern-js/utils": "2.46.0"
|
93
93
|
},
|
94
94
|
"devDependencies": {
|
95
|
-
"@rsbuild/plugin-swc": "0.
|
95
|
+
"@rsbuild/plugin-swc": "0.3.3",
|
96
96
|
"@types/babel__traverse": "7.18.5",
|
97
97
|
"@types/jest": "^29",
|
98
98
|
"@types/node": "^14",
|
99
99
|
"jest": "^29",
|
100
100
|
"typescript": "^5",
|
101
101
|
"webpack": "^5.89.0",
|
102
|
-
"@scripts/build": "2.
|
103
|
-
"@scripts/jest-config": "2.
|
102
|
+
"@scripts/build": "2.46.0",
|
103
|
+
"@scripts/jest-config": "2.46.0"
|
104
104
|
},
|
105
105
|
"sideEffects": false,
|
106
106
|
"publishConfig": {
|