@modern-js/plugin-server 0.0.0-next-20221220032350 → 0.0.0-next-20221220043320

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,6 +1,6 @@
1
1
  # @modern-js/plugin-server
2
2
 
3
- ## 0.0.0-next-20221220032350
3
+ ## 0.0.0-next-20221220043320
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -34,9 +34,9 @@
34
34
  - Updated dependencies [abf3421a7]
35
35
  - Updated dependencies [543be9558]
36
36
  - Updated dependencies [14b712da8]
37
- - @modern-js/server-utils@0.0.0-next-20221220032350
38
- - @modern-js/utils@0.0.0-next-20221220032350
39
- - @modern-js/babel-compiler@0.0.0-next-20221220032350
37
+ - @modern-js/server-utils@0.0.0-next-20221220043320
38
+ - @modern-js/utils@0.0.0-next-20221220043320
39
+ - @modern-js/babel-compiler@0.0.0-next-20221220043320
40
40
 
41
41
  ## 2.0.0-beta.4
42
42
 
@@ -64,6 +64,12 @@ var cli_default = () => ({
64
64
  );
65
65
  }
66
66
  });
67
+ },
68
+ collectServerPlugins({ plugins }) {
69
+ plugins.push({
70
+ "@modern-js/plugin-server": "@modern-js/plugin-server/server"
71
+ });
72
+ return { plugins };
67
73
  }
68
74
  })
69
75
  });
@@ -92,6 +92,12 @@ var cli_default = () => ({
92
92
  );
93
93
  }
94
94
  });
95
+ },
96
+ collectServerPlugins({ plugins }) {
97
+ plugins.push({
98
+ "@modern-js/plugin-server": "@modern-js/plugin-server/server"
99
+ });
100
+ return { plugins };
95
101
  }
96
102
  })
97
103
  });
@@ -184,6 +184,15 @@ var cli_default = function() {
184
184
  }
185
185
  });
186
186
  })();
187
+ },
188
+ collectServerPlugins: function collectServerPlugins(param) {
189
+ var plugins = param.plugins;
190
+ plugins.push({
191
+ "@modern-js/plugin-server": "@modern-js/plugin-server/server"
192
+ });
193
+ return {
194
+ plugins: plugins
195
+ };
187
196
  }
188
197
  };
189
198
  }
@@ -1,9 +1,6 @@
1
1
  import type { CliPlugin } from '@modern-js/core';
2
- import { UserConfig } from '@modern-js/server-core';
2
+ import type { AppTools } from '@modern-js/app-tools';
3
3
 
4
- declare const _default: () => CliPlugin<{
5
- userConfig: UserConfig;
6
- normalizedConfig: Required<UserConfig>;
7
- }>;
4
+ declare const _default: () => CliPlugin<AppTools>;
8
5
 
9
6
  export default _default;
package/package.json CHANGED
@@ -11,18 +11,14 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-20221220032350",
14
+ "version": "0.0.0-next-20221220043320",
15
15
  "types": "./dist/types/server.d.ts",
16
- "jsnext:source": "./src/server.ts",
17
- "main": "./dist/js/node/server.js",
16
+ "jsnext:source": "./src/cli",
17
+ "main": "./dist/js/node/cli.js",
18
18
  "exports": {
19
19
  ".": {
20
- "node": {
21
- "jsnext:source": "./src/server.ts",
22
- "import": "./dist/js/modern/server.js",
23
- "require": "./dist/js/node/server.js"
24
- },
25
- "default": "./dist/js/treeshaking/server.js"
20
+ "jsnext:source": "./src/cli.ts",
21
+ "default": "./dist/js/node/cli.js"
26
22
  },
27
23
  "./cli": {
28
24
  "jsnext:source": "./src/cli.ts",
@@ -48,20 +44,21 @@
48
44
  },
49
45
  "dependencies": {
50
46
  "@babel/runtime": "^7.18.0",
51
- "@modern-js/babel-compiler": "0.0.0-next-20221220032350",
52
- "@modern-js/server-utils": "0.0.0-next-20221220032350",
53
- "@modern-js/utils": "0.0.0-next-20221220032350"
47
+ "@modern-js/server-utils": "0.0.0-next-20221220043320",
48
+ "@modern-js/babel-compiler": "0.0.0-next-20221220043320",
49
+ "@modern-js/utils": "0.0.0-next-20221220043320"
54
50
  },
55
51
  "devDependencies": {
56
52
  "typescript": "^4",
57
53
  "@types/jest": "^27",
58
54
  "@types/node": "^14",
59
55
  "jest": "^27",
60
- "@modern-js/server-core": "0.0.0-next-20221220032350",
61
- "@scripts/build": "0.0.0-next-20221220032350",
62
- "@modern-js/core": "0.0.0-next-20221220032350",
63
- "@modern-js/types": "0.0.0-next-20221220032350",
64
- "@scripts/jest-config": "0.0.0-next-20221220032350"
56
+ "@modern-js/server-core": "0.0.0-next-20221220043320",
57
+ "@modern-js/app-tools": "0.0.0-next-20221220043320",
58
+ "@modern-js/core": "0.0.0-next-20221220043320",
59
+ "@scripts/build": "0.0.0-next-20221220043320",
60
+ "@modern-js/types": "0.0.0-next-20221220043320",
61
+ "@scripts/jest-config": "0.0.0-next-20221220043320"
65
62
  },
66
63
  "sideEffects": [
67
64
  "*.css",