@modern-js/plugin-v2 0.0.0-nightly-20250326160323 → 0.0.0-nightly-20250327160302

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.
@@ -37,6 +37,7 @@ var import_hooks = require("./hooks");
37
37
  function initAppContext(params) {
38
38
  const { appDirectory, srcDir = "src", distDir = "dist" } = params;
39
39
  return {
40
+ metaName: params.metaName,
40
41
  packageName: params.packageName,
41
42
  configFile: params.configFile,
42
43
  command: params.command,
@@ -78,7 +78,8 @@ const createCli = () => {
78
78
  configFile: loaded.configFile,
79
79
  command,
80
80
  appDirectory,
81
- plugins
81
+ plugins,
82
+ metaName
82
83
  }),
83
84
  config: loaded.config,
84
85
  normalizedConfig: {}
@@ -7,6 +7,7 @@ import { initHooks } from "./hooks";
7
7
  function initAppContext(params) {
8
8
  var appDirectory = params.appDirectory, _params_srcDir = params.srcDir, srcDir = _params_srcDir === void 0 ? "src" : _params_srcDir, _params_distDir = params.distDir, distDir = _params_distDir === void 0 ? "dist" : _params_distDir;
9
9
  return {
10
+ metaName: params.metaName,
10
11
  packageName: params.packageName,
11
12
  configFile: params.configFile,
12
13
  command: params.command,
@@ -106,7 +106,8 @@ var createCli = function() {
106
106
  configFile: loaded.configFile,
107
107
  command,
108
108
  appDirectory,
109
- plugins
109
+ plugins,
110
+ metaName
110
111
  }),
111
112
  config: loaded.config,
112
113
  normalizedConfig: {}
@@ -3,6 +3,7 @@ import { initHooks } from "./hooks";
3
3
  function initAppContext(params) {
4
4
  const { appDirectory, srcDir = "src", distDir = "dist" } = params;
5
5
  return {
6
+ metaName: params.metaName,
6
7
  packageName: params.packageName,
7
8
  configFile: params.configFile,
8
9
  command: params.command,
@@ -55,7 +55,8 @@ const createCli = () => {
55
55
  configFile: loaded.configFile,
56
56
  command,
57
57
  appDirectory,
58
- plugins
58
+ plugins,
59
+ metaName
59
60
  }),
60
61
  config: loaded.config,
61
62
  normalizedConfig: {}
@@ -10,6 +10,7 @@ export declare function initAppContext<Extends extends CLIPluginExtends>(params:
10
10
  configFile: string;
11
11
  command: string;
12
12
  appDirectory: string;
13
+ metaName: string;
13
14
  plugins: CLIPlugin<Extends>[];
14
15
  srcDir?: string;
15
16
  distDir?: string;
@@ -10,6 +10,7 @@ export interface Entrypoint {
10
10
  }
11
11
  /** The public context */
12
12
  export type AppContext<Extends extends CLIPluginExtends> = {
13
+ metaName: string;
13
14
  packageName: string;
14
15
  configFile: string;
15
16
  command: string;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20250326160323",
18
+ "version": "0.0.0-nightly-20250327160302",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -81,8 +81,8 @@
81
81
  "dependencies": {
82
82
  "@swc/helpers": "0.5.13",
83
83
  "jiti": "1.21.7",
84
- "@modern-js/runtime-utils": "0.0.0-nightly-20250326160323",
85
- "@modern-js/utils": "0.0.0-nightly-20250326160323"
84
+ "@modern-js/runtime-utils": "0.0.0-nightly-20250327160302",
85
+ "@modern-js/utils": "0.0.0-nightly-20250327160302"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@rsbuild/core": "1.2.19",
@@ -91,10 +91,10 @@
91
91
  "@types/react": "^18.3.11",
92
92
  "jest": "^29",
93
93
  "typescript": "^5",
94
- "@modern-js/types": "0.0.0-nightly-20250326160323",
95
- "@modern-js/uni-builder": "0.0.0-nightly-20250326160323",
96
- "@scripts/build": "0.0.0-nightly-20250326160323",
97
- "@scripts/jest-config": "0.0.0-nightly-20250326160323"
94
+ "@modern-js/types": "0.0.0-nightly-20250327160302",
95
+ "@modern-js/uni-builder": "0.0.0-nightly-20250327160302",
96
+ "@scripts/jest-config": "0.0.0-nightly-20250327160302",
97
+ "@scripts/build": "0.0.0-nightly-20250327160302"
98
98
  },
99
99
  "sideEffects": false,
100
100
  "publishConfig": {