@modern-js/plugin-v2 2.64.1-alpha.0 → 2.64.1-alpha.2
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.
|
@@ -8,7 +8,7 @@ declare module '@modern-js/utils/commander' {
|
|
|
8
8
|
commandsMap: Map<string, Command>;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
export type ConfigFn<Config> = () => Config
|
|
11
|
+
export type ConfigFn<Config> = () => Config | Promise<Config>;
|
|
12
12
|
export type ModifyConfigFn<Config, ExtendConfigUtils> = (arg: Config, utils?: ExtendConfigUtils) => Config | Promise<Config>;
|
|
13
13
|
export type ModifyResolvedConfigFn<NormalizedConfig, ExtendConfigUtils> = (arg: NormalizedConfig, utils?: ExtendConfigUtils) => NormalizedConfig | Promise<NormalizedConfig>;
|
|
14
14
|
type IPartialMethod = (...script: string[]) => void;
|
|
@@ -5,11 +5,11 @@ export type SyncHook<Callback extends (...args: any[]) => any> = {
|
|
|
5
5
|
};
|
|
6
6
|
export type AsyncHook<Callback extends (...args: any[]) => any> = {
|
|
7
7
|
tap: (cb: Callback) => void;
|
|
8
|
-
call: (...args: Parameters<Callback>) => Promise<ReturnType<
|
|
8
|
+
call: (...args: Parameters<Callback>) => Promise<UnwrapPromise<ReturnType<Callback>>>;
|
|
9
9
|
};
|
|
10
10
|
export type AsyncInterruptHook<Callback extends (...args: any[]) => any> = {
|
|
11
11
|
tap: (cb: Callback) => void;
|
|
12
|
-
call: (...args: Tail<Parameters<Callback>>) => Promise<ReturnType<
|
|
12
|
+
call: (...args: Tail<Parameters<Callback>>) => Promise<UnwrapPromise<ReturnType<Callback>>>;
|
|
13
13
|
};
|
|
14
14
|
export type CollectAsyncHook<Callback extends (...params: any[]) => any> = {
|
|
15
15
|
tap: (cb: Callback) => void;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.64.1-alpha.
|
|
18
|
+
"version": "2.64.1-alpha.2",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"jiti": "1.21.7",
|
|
67
67
|
"@swc/helpers": "0.5.13",
|
|
68
|
-
"@modern-js/utils": "2.64.0",
|
|
69
|
-
"@modern-js/
|
|
68
|
+
"@modern-js/runtime-utils": "2.64.0",
|
|
69
|
+
"@modern-js/utils": "2.64.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@rsbuild/core": "1.1.13",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"@types/node": "^14",
|
|
76
76
|
"jest": "^29",
|
|
77
77
|
"typescript": "^5",
|
|
78
|
-
"@modern-js/uni-builder": "2.64.0",
|
|
79
|
-
"@scripts/build": "2.64.0",
|
|
80
78
|
"@modern-js/types": "2.64.0",
|
|
81
|
-
"@scripts/
|
|
79
|
+
"@scripts/build": "2.64.0",
|
|
80
|
+
"@scripts/jest-config": "2.64.0",
|
|
81
|
+
"@modern-js/uni-builder": "2.64.0"
|
|
82
82
|
},
|
|
83
83
|
"sideEffects": false,
|
|
84
84
|
"publishConfig": {
|