@modern-js/core 2.21.1 → 2.22.1

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,33 @@
1
1
  # @modern-js/core
2
2
 
3
+ ## 2.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f02cd2: chore: fix some eslint issues
8
+
9
+ chore: 修复一些 eslint issues
10
+
11
+ - Updated dependencies [e2848a2]
12
+ - Updated dependencies [d4045ed]
13
+ - @modern-js/utils@2.22.1
14
+ - @modern-js/node-bundle-require@2.22.1
15
+ - @modern-js/plugin@2.22.1
16
+
17
+ ## 2.22.0
18
+
19
+ ### Patch Changes
20
+
21
+ - 27618e4: chore(deps): remove unused dev dependencies
22
+
23
+ chore(deps): 移除未使用的 dev dependencies
24
+
25
+ - Updated dependencies [3d48836]
26
+ - Updated dependencies [5050e8e]
27
+ - @modern-js/utils@2.22.0
28
+ - @modern-js/node-bundle-require@2.22.0
29
+ - @modern-js/plugin@2.22.0
30
+
3
31
  ## 2.21.1
4
32
 
5
33
  ### Patch Changes
package/dist/createCli.js CHANGED
@@ -84,11 +84,12 @@ const createCli = () => {
84
84
  };
85
85
  };
86
86
  async function run(options) {
87
+ var _a;
87
88
  const { appContext } = await init(options);
88
89
  await hooksRunner.commands({ program: utils_1.program });
89
90
  await (0, utils_2.createFileWatcher)(appContext, hooksRunner);
90
91
  utils_1.program.parse(process.argv);
91
- if (!utils_1.program.commands || !utils_1.program.commands.length) {
92
+ if (!((_a = utils_1.program.commands) === null || _a === void 0 ? void 0 : _a.length)) {
92
93
  utils_1.logger.warn('No command found, please make sure you have registered plugins correctly.');
93
94
  }
94
95
  }
@@ -12,4 +12,4 @@ export type BaseTestingUserConfig<ExtendTestingUserConfig = {}> = Merge<{
12
12
  */
13
13
  jest?: Jest | ((jestConfig: Jest) => Jest);
14
14
  }, ExtendTestingUserConfig>;
15
- export type BaseTestingNormalizedConfig<ExtendTestingNormailzedConfig = {}> = BaseTestingUserConfig<ExtendTestingNormailzedConfig>;
15
+ export type BaseTestingNormalizedConfig<ExtendTestingNormalizedConfig = {}> = BaseTestingUserConfig<ExtendTestingNormalizedConfig>;
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "modern",
15
15
  "modern.js"
16
16
  ],
17
- "version": "2.21.1",
17
+ "version": "2.22.1",
18
18
  "jsnext:source": "./src/index.ts",
19
19
  "types": "./dist/index.d.ts",
20
20
  "main": "./dist/index.js",
@@ -69,30 +69,20 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "@modern-js/node-bundle-require": "2.21.1",
73
- "@modern-js/plugin": "2.21.1",
74
- "@modern-js/utils": "2.21.1"
72
+ "@modern-js/node-bundle-require": "2.22.1",
73
+ "@modern-js/plugin": "2.22.1",
74
+ "@modern-js/utils": "2.22.1"
75
75
  },
76
76
  "devDependencies": {
77
- "@types/babel__code-frame": "^7.0.3",
78
- "@types/babel__core": "^7.20.0",
79
77
  "@types/jest": "^29",
80
- "@types/less": "^3.0.3",
81
78
  "@types/node": "^14",
82
- "autoprefixer": "10.4.13",
83
79
  "tsm": "2.3.0",
84
- "html-webpack-plugin": "5.5.0",
85
80
  "jest": "^29",
86
- "postcss": "8.4.21",
87
- "sass": "^1.45.0",
88
- "terser-webpack-plugin": "^5.1.4",
89
81
  "typescript": "^5",
90
- "webpack": "^5.82.1",
91
- "@modern-js/builder-shared": "2.21.1",
92
- "@modern-js/babel-preset-app": "2.21.1",
93
- "@modern-js/types": "2.21.1",
94
- "@scripts/jest-config": "2.21.1",
95
- "@scripts/build": "2.21.1"
82
+ "@modern-js/builder-shared": "2.22.1",
83
+ "@modern-js/types": "2.22.1",
84
+ "@scripts/jest-config": "2.22.1",
85
+ "@scripts/build": "2.22.1"
96
86
  },
97
87
  "sideEffects": false,
98
88
  "publishConfig": {