@modern-js/core 2.29.0 → 2.30.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,17 @@
1
1
  # @modern-js/core
2
2
 
3
+ ## 2.30.0
4
+
5
+ ### Patch Changes
6
+
7
+ - c03be09: feat(CLI): print solution name and version to terminal
8
+
9
+ feat(CLI): 在控制台输出 solution 的名称和版本
10
+
11
+ - @modern-js/utils@2.30.0
12
+ - @modern-js/node-bundle-require@2.30.0
13
+ - @modern-js/plugin@2.30.0
14
+
3
15
  ## 2.29.0
4
16
 
5
17
  ### Patch Changes
package/dist/runBin.js CHANGED
@@ -13,6 +13,9 @@ const _utils = require("@modern-js/utils");
13
13
  const _ = require(".");
14
14
  const run = async (otherCoreOptions = {}, options = {}) => {
15
15
  var _options;
16
+ if (otherCoreOptions.initialLog) {
17
+ _utils.logger.info(`${_utils.chalk.green.bold(otherCoreOptions.initialLog)}`);
18
+ }
16
19
  const command = process.argv[2];
17
20
  if (!process.env.NODE_ENV) {
18
21
  if ([
@@ -5,6 +5,10 @@ export interface CoreOptions {
5
5
  cwd?: string;
6
6
  version?: string;
7
7
  configFile?: string;
8
+ /**
9
+ * The initial log message when CLI started
10
+ */
11
+ initialLog?: string;
8
12
  serverConfigFile?: string;
9
13
  packageJsonConfig?: string;
10
14
  internalPlugins?: {
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "modern",
15
15
  "modern.js"
16
16
  ],
17
- "version": "2.29.0",
17
+ "version": "2.30.0",
18
18
  "jsnext:source": "./src/index.ts",
19
19
  "types": "./dist/index.d.ts",
20
20
  "main": "./dist/index.js",
@@ -70,9 +70,9 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@swc/helpers": "0.5.1",
73
- "@modern-js/node-bundle-require": "2.29.0",
74
- "@modern-js/plugin": "2.29.0",
75
- "@modern-js/utils": "2.29.0"
73
+ "@modern-js/node-bundle-require": "2.30.0",
74
+ "@modern-js/plugin": "2.30.0",
75
+ "@modern-js/utils": "2.30.0"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/jest": "^29",
@@ -80,10 +80,10 @@
80
80
  "tsm": "2.3.0",
81
81
  "jest": "^29",
82
82
  "typescript": "^5",
83
- "@modern-js/builder-shared": "2.29.0",
84
- "@modern-js/types": "2.29.0",
85
- "@scripts/build": "2.29.0",
86
- "@scripts/jest-config": "2.29.0"
83
+ "@modern-js/builder-shared": "2.30.0",
84
+ "@modern-js/types": "2.30.0",
85
+ "@scripts/build": "2.30.0",
86
+ "@scripts/jest-config": "2.30.0"
87
87
  },
88
88
  "sideEffects": false,
89
89
  "publishConfig": {