@modern-js/core 2.45.0 → 2.46.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.
@@ -1,5 +1,5 @@
1
1
  import { Entrypoint, InternalPlugins, ServerRoute, HtmlTemplates, HtmlPartials } from '@modern-js/types';
2
- import { BuilderInstance } from '@modern-js/builder-shared';
2
+ import type { UniBuilderInstance, UniBuilderWebpackInstance } from '@modern-js/uni-builder';
3
3
  export type ToolsType = 'app-tools' | 'module-tools' | 'monorepo-tools';
4
4
  export interface IAppContext {
5
5
  /** name for generating conventional constants, such as .modern-js */
@@ -43,7 +43,7 @@ export interface IAppContext {
43
43
  /** Whether to use api only mode */
44
44
  apiOnly: boolean;
45
45
  /** The Builder instance */
46
- builder?: BuilderInstance;
46
+ builder?: UniBuilderInstance | UniBuilderWebpackInstance;
47
47
  /** Tools type of the current project */
48
48
  toolsType?: ToolsType;
49
49
  /** Type of the bundler being used */
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "modern",
15
15
  "modern.js"
16
16
  ],
17
- "version": "2.45.0",
17
+ "version": "2.46.0",
18
18
  "jsnext:source": "./src/index.ts",
19
19
  "types": "./dist/index.d.ts",
20
20
  "main": "./dist/index.js",
@@ -71,9 +71,9 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@swc/helpers": "0.5.3",
74
- "@modern-js/plugin": "2.45.0",
75
- "@modern-js/node-bundle-require": "2.45.0",
76
- "@modern-js/utils": "2.45.0"
74
+ "@modern-js/node-bundle-require": "2.46.0",
75
+ "@modern-js/utils": "2.46.0",
76
+ "@modern-js/plugin": "2.46.0"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@types/jest": "^29",
@@ -81,10 +81,10 @@
81
81
  "tsm": "2.3.0",
82
82
  "jest": "^29",
83
83
  "typescript": "^5",
84
- "@modern-js/builder-shared": "2.45.0",
85
- "@modern-js/types": "2.45.0",
86
- "@scripts/build": "2.45.0",
87
- "@scripts/jest-config": "2.45.0"
84
+ "@modern-js/uni-builder": "2.46.0",
85
+ "@modern-js/types": "2.46.0",
86
+ "@scripts/build": "2.46.0",
87
+ "@scripts/jest-config": "2.46.0"
88
88
  },
89
89
  "sideEffects": false,
90
90
  "publishConfig": {