@modern-js/new-action 1.3.12 → 1.4.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.
- package/CHANGELOG.md +21 -0
- package/dist/js/modern/monorepo.js +7 -2
- package/dist/js/node/monorepo.js +7 -2
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @modern-js/new-action
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 52374e3: chore(generator): use module-tools bundle function to bundle generator package
|
|
8
|
+
|
|
9
|
+
chore(generator): 使用 module-tools 的 bundle 功能实现生成器打包
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 281edd5: fix: monorepo new command plugin path
|
|
14
|
+
|
|
15
|
+
fix: 修复 monorepo tools new 命令计算插件路径
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [4fc801f]
|
|
18
|
+
- Updated dependencies [c8614b8]
|
|
19
|
+
- Updated dependencies [52374e3]
|
|
20
|
+
- @modern-js/utils@1.8.0
|
|
21
|
+
- @modern-js/generator-common@1.6.0
|
|
22
|
+
- @modern-js/generator-utils@1.4.0
|
|
23
|
+
|
|
3
24
|
## 1.3.12
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -38,9 +38,14 @@ export const MonorepoNewAction = async options => {
|
|
|
38
38
|
|
|
39
39
|
const plugins = plugin.map(plugin => {
|
|
40
40
|
try {
|
|
41
|
-
return path.join(require.resolve(plugin), '
|
|
41
|
+
return path.join(require.resolve(plugin), '../../');
|
|
42
42
|
} catch (e) {
|
|
43
|
-
|
|
43
|
+
try {
|
|
44
|
+
// 兼容旧版打包路径
|
|
45
|
+
return path.join(require.resolve(plugin), '../../../../');
|
|
46
|
+
} catch (e) {
|
|
47
|
+
return plugin;
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
});
|
|
46
51
|
const finalConfig = merge(UserConfig, {
|
package/dist/js/node/monorepo.js
CHANGED
|
@@ -55,9 +55,14 @@ const MonorepoNewAction = async options => {
|
|
|
55
55
|
|
|
56
56
|
const plugins = plugin.map(plugin => {
|
|
57
57
|
try {
|
|
58
|
-
return _path.default.join(require.resolve(plugin), '
|
|
58
|
+
return _path.default.join(require.resolve(plugin), '../../');
|
|
59
59
|
} catch (e) {
|
|
60
|
-
|
|
60
|
+
try {
|
|
61
|
+
// 兼容旧版打包路径
|
|
62
|
+
return _path.default.join(require.resolve(plugin), '../../../../');
|
|
63
|
+
} catch (e) {
|
|
64
|
+
return plugin;
|
|
65
|
+
}
|
|
61
66
|
}
|
|
62
67
|
});
|
|
63
68
|
const finalConfig = (0, _lodash.merge)(UserConfig, {
|
package/package.json
CHANGED
|
@@ -11,11 +11,10 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.4.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
18
|
-
"module": "./dist/js/treeshaking/index.js",
|
|
19
18
|
"jsnext:modern": "./dist/js/modern/index.js",
|
|
20
19
|
"exports": {
|
|
21
20
|
".": {
|
|
@@ -24,16 +23,16 @@
|
|
|
24
23
|
"import": "./dist/js/modern/index.js",
|
|
25
24
|
"require": "./dist/js/node/index.js"
|
|
26
25
|
},
|
|
27
|
-
"default": "./dist/js/
|
|
26
|
+
"default": "./dist/js/node/index.js"
|
|
28
27
|
}
|
|
29
28
|
},
|
|
30
29
|
"dependencies": {
|
|
31
30
|
"@babel/runtime": "^7.18.0",
|
|
32
|
-
"@modern-js/codesmith": "^1.
|
|
33
|
-
"@modern-js/codesmith-api-app": "^1.
|
|
34
|
-
"@modern-js/generator-common": "^1.
|
|
35
|
-
"@modern-js/generator-utils": "^1.
|
|
36
|
-
"@modern-js/utils": "^1.
|
|
31
|
+
"@modern-js/codesmith": "^1.4.0",
|
|
32
|
+
"@modern-js/codesmith-api-app": "^1.3.0",
|
|
33
|
+
"@modern-js/generator-common": "^1.6.0",
|
|
34
|
+
"@modern-js/generator-utils": "^1.4.0",
|
|
35
|
+
"@modern-js/utils": "^1.8.0"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@types/jest": "^27",
|