@modern-js/core 2.22.0 → 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,19 @@
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
+
3
17
  ## 2.22.0
4
18
 
5
19
  ### 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
  }
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "modern",
15
15
  "modern.js"
16
16
  ],
17
- "version": "2.22.0",
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,9 +69,9 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "@modern-js/node-bundle-require": "2.22.0",
73
- "@modern-js/plugin": "2.22.0",
74
- "@modern-js/utils": "2.22.0"
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
77
  "@types/jest": "^29",
@@ -79,10 +79,10 @@
79
79
  "tsm": "2.3.0",
80
80
  "jest": "^29",
81
81
  "typescript": "^5",
82
- "@modern-js/builder-shared": "2.22.0",
83
- "@modern-js/types": "2.22.0",
84
- "@scripts/jest-config": "2.22.0",
85
- "@scripts/build": "2.22.0"
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"
86
86
  },
87
87
  "sideEffects": false,
88
88
  "publishConfig": {