@modern-js/types 1.3.3 → 1.3.5
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 +16 -0
- package/cli/index.d.ts +6 -3
- package/package.json +2 -2
- package/server/context.d.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @modern-js/types
|
|
2
2
|
|
|
3
|
+
## 1.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d95f28c3: should enable babel register before server plugin require
|
|
8
|
+
- Updated dependencies [80d8ddfe]
|
|
9
|
+
- Updated dependencies [491145e3]
|
|
10
|
+
- @modern-js/plugin@1.3.0
|
|
11
|
+
|
|
12
|
+
## 1.3.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 4499a674: feat: support to pass options to plugins
|
|
17
|
+
- e37ea5b2: feat: add afterMonorepoDeploy hook
|
|
18
|
+
|
|
3
19
|
## 1.3.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/cli/index.d.ts
CHANGED
|
@@ -57,9 +57,9 @@ export interface IAppContext {
|
|
|
57
57
|
internalDirectory: string;
|
|
58
58
|
plugins: {
|
|
59
59
|
cli?: any;
|
|
60
|
-
|
|
60
|
+
cliPkg?: any;
|
|
61
61
|
server?: any;
|
|
62
|
-
|
|
62
|
+
serverPkg?: any;
|
|
63
63
|
}[];
|
|
64
64
|
entrypoints: Entrypoint[];
|
|
65
65
|
checkedEntries: string[];
|
|
@@ -79,7 +79,6 @@ export interface Hooks {
|
|
|
79
79
|
},
|
|
80
80
|
unknown
|
|
81
81
|
>;
|
|
82
|
-
|
|
83
82
|
afterCreateCompiler: AsyncWorkflow<
|
|
84
83
|
{
|
|
85
84
|
compiler: Compiler | MultiCompiler | undefined;
|
|
@@ -96,6 +95,10 @@ export interface Hooks {
|
|
|
96
95
|
unknown
|
|
97
96
|
>;
|
|
98
97
|
afterBuild: AsyncWorkflow<void, unknown>;
|
|
98
|
+
afterMonorepoDeploy: AsyncWorkflow<
|
|
99
|
+
{ operator: any; deployProjectNames: string[] },
|
|
100
|
+
void
|
|
101
|
+
>;
|
|
99
102
|
beforeDeploy: AsyncWorkflow<Record<string, any>, unknown>;
|
|
100
103
|
afterDeploy: AsyncWorkflow<Record<string, any>, unknown>;
|
|
101
104
|
modifyEntryExport: AsyncWaterfall<{
|
package/package.json
CHANGED
package/server/context.d.ts
CHANGED
|
@@ -64,3 +64,13 @@ export type BaseSSRServerContext = {
|
|
|
64
64
|
loadableManifest?: string;
|
|
65
65
|
cacheConfig?: any;
|
|
66
66
|
};
|
|
67
|
+
|
|
68
|
+
export interface ISAppContext {
|
|
69
|
+
appDirectory: string;
|
|
70
|
+
distDirectory: string;
|
|
71
|
+
sharedDirectory: string;
|
|
72
|
+
plugins: {
|
|
73
|
+
server?: any;
|
|
74
|
+
serverPkg?: any;
|
|
75
|
+
}[];
|
|
76
|
+
}
|