@modern-js/plugin-server 0.0.0-next-1687763260175 → 0.0.0-next-1687763825625
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 +8 -3
- package/dist/cjs/cli.js +14 -4
- package/dist/esm/cli.js +3 -3
- package/dist/esm-node/cli.js +2 -1
- package/dist/types/cli.d.ts +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
# @modern-js/plugin-server
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-1687763825625
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
7
|
+
- 4c4c0ade4: feat: add named exports for all CLI plugins
|
|
8
|
+
|
|
9
|
+
feat: 为各个 CLI 插件添加 named 导出
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [5732c6a08]
|
|
12
|
+
- @modern-js/utils@0.0.0-next-1687763825625
|
|
13
|
+
- @modern-js/server-utils@0.0.0-next-1687763825625
|
|
9
14
|
|
|
10
15
|
## 2.24.0
|
|
11
16
|
|
package/dist/cjs/cli.js
CHANGED
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
serverPlugin: function() {
|
|
14
|
+
return serverPlugin;
|
|
15
|
+
},
|
|
16
|
+
default: function() {
|
|
8
17
|
return _default;
|
|
9
18
|
}
|
|
10
19
|
});
|
|
@@ -14,7 +23,7 @@ const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
|
14
23
|
const _serverutils = require("@modern-js/server-utils");
|
|
15
24
|
const _utils = require("@modern-js/utils");
|
|
16
25
|
const TS_CONFIG_FILENAME = "tsconfig.json";
|
|
17
|
-
const
|
|
26
|
+
const serverPlugin = () => ({
|
|
18
27
|
name: "@modern-js/plugin-server",
|
|
19
28
|
setup: (api) => ({
|
|
20
29
|
config() {
|
|
@@ -59,3 +68,4 @@ const _default = () => ({
|
|
|
59
68
|
}
|
|
60
69
|
})
|
|
61
70
|
});
|
|
71
|
+
const _default = serverPlugin;
|
package/dist/esm/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import path from "path";
|
|
|
5
5
|
import { compile } from "@modern-js/server-utils";
|
|
6
6
|
import { SHARED_DIR, SERVER_DIR } from "@modern-js/utils";
|
|
7
7
|
var TS_CONFIG_FILENAME = "tsconfig.json";
|
|
8
|
-
export
|
|
8
|
+
export var serverPlugin = function() {
|
|
9
9
|
return {
|
|
10
10
|
name: "@modern-js/plugin-server",
|
|
11
11
|
setup: function(api) {
|
|
@@ -75,5 +75,5 @@ export default function() {
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
}
|
|
79
|
-
;
|
|
78
|
+
};
|
|
79
|
+
export default serverPlugin;
|
package/dist/esm-node/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import path from "path";
|
|
|
3
3
|
import { compile } from "@modern-js/server-utils";
|
|
4
4
|
import { SHARED_DIR, SERVER_DIR } from "@modern-js/utils";
|
|
5
5
|
const TS_CONFIG_FILENAME = "tsconfig.json";
|
|
6
|
-
export
|
|
6
|
+
export const serverPlugin = () => ({
|
|
7
7
|
name: "@modern-js/plugin-server",
|
|
8
8
|
setup: (api) => ({
|
|
9
9
|
config() {
|
|
@@ -48,3 +48,4 @@ export default () => ({
|
|
|
48
48
|
}
|
|
49
49
|
})
|
|
50
50
|
});
|
|
51
|
+
export default serverPlugin;
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CliPlugin } from '@modern-js/core';
|
|
2
2
|
import type { AppTools } from '@modern-js/app-tools';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
export declare const serverPlugin: () => CliPlugin<AppTools>;
|
|
4
|
+
export default serverPlugin;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-1687763825625",
|
|
19
19
|
"types": "./dist/types/cli.d.ts",
|
|
20
20
|
"jsnext:source": "./src/cli",
|
|
21
21
|
"main": "./dist/cjs/cli.js",
|
|
@@ -51,20 +51,20 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@swc/helpers": "0.5.1",
|
|
54
|
-
"@modern-js/server-utils": "0.0.0-next-
|
|
55
|
-
"@modern-js/utils": "0.0.0-next-
|
|
54
|
+
"@modern-js/server-utils": "0.0.0-next-1687763825625",
|
|
55
|
+
"@modern-js/utils": "0.0.0-next-1687763825625"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"typescript": "^5",
|
|
59
59
|
"@types/jest": "^29",
|
|
60
60
|
"@types/node": "^14",
|
|
61
61
|
"jest": "^29",
|
|
62
|
-
"@modern-js/server-core": "0.0.0-next-
|
|
63
|
-
"@modern-js/
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
62
|
+
"@modern-js/server-core": "0.0.0-next-1687763825625",
|
|
63
|
+
"@modern-js/core": "0.0.0-next-1687763825625",
|
|
64
|
+
"@scripts/build": "0.0.0-next-1687763825625",
|
|
65
|
+
"@modern-js/app-tools": "0.0.0-next-1687763825625",
|
|
66
|
+
"@scripts/jest-config": "0.0.0-next-1687763825625",
|
|
67
|
+
"@modern-js/types": "0.0.0-next-1687763825625"
|
|
68
68
|
},
|
|
69
69
|
"sideEffects": [
|
|
70
70
|
"*.css",
|