@modern-js/new-action 1.3.12 → 1.16.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 CHANGED
@@ -1,5 +1,61 @@
1
1
  # @modern-js/new-action
2
2
 
3
+ ## 1.16.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 9d9bbfd05: feat: update codesmith package
8
+
9
+ feat: 升级 codesmith 包版本
10
+
11
+ - Updated dependencies [beecff68d]
12
+ - Updated dependencies [641592f52]
13
+ - Updated dependencies [3904b30a5]
14
+ - Updated dependencies [1100dd58c]
15
+ - Updated dependencies [e04e6e76a]
16
+ - Updated dependencies [94222750f]
17
+ - Updated dependencies [81c66e4a4]
18
+ - Updated dependencies [2c305b6f5]
19
+ - Updated dependencies [9d9bbfd05]
20
+ - @modern-js/generator-utils@2.3.0
21
+ - @modern-js/utils@1.16.0
22
+ - @modern-js/generator-common@2.3.0
23
+
24
+ ## 1.15.0
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [8658a78]
29
+ - Updated dependencies [05d4a4f]
30
+ - Updated dependencies [ad05af9]
31
+ - Updated dependencies [5d53d1c]
32
+ - Updated dependencies [9e6a0aa]
33
+ - Updated dependencies [37cd159]
34
+ - @modern-js/generator-common@2.2.1
35
+ - @modern-js/utils@1.15.0
36
+ - @modern-js/generator-utils@2.2.1
37
+
38
+ ## 1.4.0
39
+
40
+ ### Minor Changes
41
+
42
+ - 52374e3: chore(generator): use module-tools bundle function to bundle generator package
43
+
44
+ chore(generator): 使用 module-tools 的 bundle 功能实现生成器打包
45
+
46
+ ### Patch Changes
47
+
48
+ - 281edd5: fix: monorepo new command plugin path
49
+
50
+ fix: 修复 monorepo tools new 命令计算插件路径
51
+
52
+ - Updated dependencies [4fc801f]
53
+ - Updated dependencies [c8614b8]
54
+ - Updated dependencies [52374e3]
55
+ - @modern-js/utils@1.8.0
56
+ - @modern-js/generator-common@1.6.0
57
+ - @modern-js/generator-utils@1.4.0
58
+
3
59
  ## 1.3.12
4
60
 
5
61
  ### 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
- return plugin;
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, {
@@ -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
- return plugin;
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.3.12",
14
+ "version": "1.16.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,24 +23,24 @@
24
23
  "import": "./dist/js/modern/index.js",
25
24
  "require": "./dist/js/node/index.js"
26
25
  },
27
- "default": "./dist/js/treeshaking/index.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.3.0",
33
- "@modern-js/codesmith-api-app": "^1.2.5",
34
- "@modern-js/generator-common": "^1.5.0",
35
- "@modern-js/generator-utils": "^1.3.0",
36
- "@modern-js/utils": "^1.7.12"
31
+ "@modern-js/codesmith": "^1.5.0",
32
+ "@modern-js/codesmith-api-app": "^1.5.0",
33
+ "@modern-js/generator-common": "2.3.0",
34
+ "@modern-js/generator-utils": "2.3.0",
35
+ "@modern-js/utils": "1.16.0"
37
36
  },
38
37
  "devDependencies": {
38
+ "@scripts/build": "1.15.0",
39
+ "@scripts/jest-config": "1.15.0",
39
40
  "@types/jest": "^27",
40
41
  "@types/node": "^14",
41
- "typescript": "^4",
42
- "@scripts/build": "0.0.0",
43
42
  "jest": "^27",
44
- "@scripts/jest-config": "0.0.0"
43
+ "typescript": "^4"
45
44
  },
46
45
  "sideEffects": false,
47
46
  "modernConfig": {