@modern-js/plugin-garfish 2.56.1-alpha.0 → 2.56.1
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/dist/cjs/cli/index.js
CHANGED
|
@@ -25,7 +25,7 @@ __export(cli_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(cli_exports);
|
|
27
27
|
var import_utils = require("@modern-js/utils");
|
|
28
|
-
var
|
|
28
|
+
var import_plugin = require("@modern-js/plugin");
|
|
29
29
|
var import_util = require("../util");
|
|
30
30
|
var import_utils2 = require("./utils");
|
|
31
31
|
var import_code = require("./code");
|
|
@@ -47,7 +47,7 @@ function getDefaultMicroFrontedConfig(microFrontend) {
|
|
|
47
47
|
...microFrontend
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
const appendEntryCode = (0,
|
|
50
|
+
const appendEntryCode = (0, import_plugin.createAsyncWorkflow)();
|
|
51
51
|
const garfishPlugin = () => ({
|
|
52
52
|
name: "@modern-js/plugin-garfish",
|
|
53
53
|
pre: [
|
package/dist/esm/cli/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
|
|
3
3
|
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
4
4
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
5
5
|
import { createRuntimeExportsUtils, getEntryOptions } from "@modern-js/utils";
|
|
6
|
-
import { createAsyncWorkflow } from "@modern-js/
|
|
6
|
+
import { createAsyncWorkflow } from "@modern-js/plugin";
|
|
7
7
|
import { logger } from "../util";
|
|
8
8
|
import { getRuntimeConfig, setRuntimeConfig } from "./utils";
|
|
9
9
|
import { generateCode } from "./code";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRuntimeExportsUtils, getEntryOptions } from "@modern-js/utils";
|
|
2
|
-
import { createAsyncWorkflow } from "@modern-js/
|
|
2
|
+
import { createAsyncWorkflow } from "@modern-js/plugin";
|
|
3
3
|
import { logger } from "../util";
|
|
4
4
|
import { getRuntimeConfig, setRuntimeConfig } from "./utils";
|
|
5
5
|
import { generateCode } from "./code";
|
package/dist/types/cli/code.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppTools, IAppContext, NormalizedConfig } from '@modern-js/app-tools';
|
|
2
2
|
import { Entrypoint } from '@modern-js/types';
|
|
3
|
-
import type { MaybeAsync } from '@modern-js/
|
|
3
|
+
import type { MaybeAsync } from '@modern-js/plugin';
|
|
4
4
|
export declare const ENTRY_BOOTSTRAP_FILE_NAME = "bootstrap.jsx";
|
|
5
5
|
export declare const generateCode: (entrypoints: Entrypoint[], appContext: IAppContext, config: NormalizedConfig<AppTools>, appendEntryCode: (input: {
|
|
6
6
|
entrypoint: Entrypoint;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type CliHookCallbacks, type useConfigContext } from '@modern-js/core';
|
|
2
|
+
import { type AsyncWorkflow } from '@modern-js/plugin';
|
|
2
3
|
import type { CliPlugin, AppTools } from '@modern-js/app-tools';
|
|
3
4
|
import { Entrypoint } from '@modern-js/types';
|
|
4
5
|
export type UseConfig = ReturnType<typeof useConfigContext>;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.56.1
|
|
18
|
+
"version": "2.56.1",
|
|
19
19
|
"jsnext:source": "./src/cli/index.ts",
|
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
|
21
21
|
"typesVersions": {
|
|
@@ -61,10 +61,11 @@
|
|
|
61
61
|
"garfish": "^1.8.1",
|
|
62
62
|
"react-loadable": "^5.5.0",
|
|
63
63
|
"@swc/helpers": "0.5.3",
|
|
64
|
-
"@modern-js/utils": "2.56.
|
|
64
|
+
"@modern-js/utils": "2.56.1",
|
|
65
|
+
"@modern-js/plugin": "2.56.1"
|
|
65
66
|
},
|
|
66
67
|
"peerDependencies": {
|
|
67
|
-
"@modern-js/runtime": "^2.56.
|
|
68
|
+
"@modern-js/runtime": "^2.56.1",
|
|
68
69
|
"react": ">=17",
|
|
69
70
|
"react-dom": ">=17"
|
|
70
71
|
},
|
|
@@ -83,18 +84,19 @@
|
|
|
83
84
|
"react-dom": "^18",
|
|
84
85
|
"react-router-dom": "6.22.0",
|
|
85
86
|
"typescript": "^5",
|
|
86
|
-
"@modern-js/
|
|
87
|
-
"@modern-js/
|
|
88
|
-
"@
|
|
89
|
-
"@modern-js/
|
|
90
|
-
"@scripts/
|
|
91
|
-
"@modern-js/
|
|
92
|
-
"@
|
|
87
|
+
"@modern-js/core": "2.56.1",
|
|
88
|
+
"@modern-js/app-tools": "2.56.1",
|
|
89
|
+
"@modern-js/runtime": "2.56.1",
|
|
90
|
+
"@modern-js/plugin-router-v5": "2.56.1",
|
|
91
|
+
"@scripts/build": "2.56.1",
|
|
92
|
+
"@modern-js/types": "2.56.1",
|
|
93
|
+
"@scripts/jest-config": "2.56.1"
|
|
93
94
|
},
|
|
94
95
|
"sideEffects": false,
|
|
95
96
|
"publishConfig": {
|
|
96
97
|
"registry": "https://registry.npmjs.org/",
|
|
97
|
-
"access": "public"
|
|
98
|
+
"access": "public",
|
|
99
|
+
"provenance": true
|
|
98
100
|
},
|
|
99
101
|
"scripts": {
|
|
100
102
|
"new": "modern-lib new",
|