@module-federation/native-federation-typescript 0.1.0 → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +82 -34
- package/dist/CHANGELOG.md +336 -0
- package/dist/DTSManagerOptions-3369791f.d.ts +9 -0
- package/dist/HostOptions-cf22e0ab.d.ts +23 -0
- package/dist/README.md +214 -0
- package/dist/chunk-2NC7LVYZ.js +864 -0
- package/dist/chunk-CF5CH54A.mjs +864 -0
- package/dist/chunk-JLWFNRJL.js +179 -0
- package/dist/chunk-QYHGZU7D.mjs +244 -0
- package/dist/chunk-VHQW5BQS.js +244 -0
- package/dist/chunk-VKKLMSMI.mjs +179 -0
- package/dist/esbuild.d.mts +9 -0
- package/dist/esbuild.d.ts +6 -3
- package/dist/esbuild.js +14 -1
- package/dist/esbuild.mjs +14 -1
- package/dist/helpers.d.mts +160 -0
- package/dist/helpers.d.ts +160 -0
- package/dist/helpers.js +40 -0
- package/dist/helpers.mjs +40 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.d.ts +13 -4
- package/dist/index.js +10 -1
- package/dist/index.mjs +10 -1
- package/dist/lib/forkGenerateDts.d.mts +9 -0
- package/dist/lib/forkGenerateDts.d.ts +9 -0
- package/dist/lib/forkGenerateDts.js +18 -0
- package/dist/lib/forkGenerateDts.mjs +18 -0
- package/dist/package.json +103 -0
- package/dist/rolldown.d.mts +9 -0
- package/dist/rolldown.d.ts +9 -0
- package/dist/rolldown.js +14 -0
- package/dist/rolldown.mjs +14 -0
- package/dist/rollup.d.mts +9 -0
- package/dist/rollup.d.ts +6 -3
- package/dist/rollup.js +14 -1
- package/dist/rollup.mjs +14 -1
- package/dist/rspack.d.mts +9 -0
- package/dist/rspack.d.ts +6 -3
- package/dist/rspack.js +14 -1
- package/dist/rspack.mjs +14 -1
- package/dist/vite.d.mts +9 -0
- package/dist/vite.d.ts +6 -3
- package/dist/vite.js +14 -1
- package/dist/vite.mjs +14 -1
- package/dist/webpack.d.mts +9 -0
- package/dist/webpack.d.ts +6 -3
- package/dist/webpack.js +14 -1
- package/dist/webpack.mjs +14 -1
- package/package.json +50 -5
- package/CHANGELOG.md +0 -28
- package/dist/RemoteOptions-ce85caac.d.ts +0 -17
- package/dist/chunk-HJB2AKNY.mjs +0 -682
- package/dist/chunk-WNKHVVXS.js +0 -682
package/dist/index.js
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkJLWFNRJLjs = require('./chunk-JLWFNRJL.js');
|
|
5
|
+
require('./chunk-VHQW5BQS.js');
|
|
6
|
+
require('./chunk-2NC7LVYZ.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.NativeFederationTypeScriptHost = _chunkJLWFNRJLjs.NativeFederationTypeScriptHost; exports.NativeFederationTypeScriptRemote = _chunkJLWFNRJLjs.NativeFederationTypeScriptRemote;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import {
|
|
2
|
+
NativeFederationTypeScriptHost,
|
|
3
|
+
NativeFederationTypeScriptRemote
|
|
4
|
+
} from "./chunk-VKKLMSMI.mjs";
|
|
5
|
+
import "./chunk-QYHGZU7D.mjs";
|
|
6
|
+
import "./chunk-CF5CH54A.mjs";
|
|
7
|
+
export {
|
|
8
|
+
NativeFederationTypeScriptHost,
|
|
9
|
+
NativeFederationTypeScriptRemote
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { D as DTSManagerOptions } from '../DTSManagerOptions-3369791f.js';
|
|
2
|
+
import '../HostOptions-cf22e0ab.js';
|
|
3
|
+
import '@module-federation/sdk';
|
|
4
|
+
|
|
5
|
+
type DtsWorkerOptions = DTSManagerOptions;
|
|
6
|
+
|
|
7
|
+
declare function forkGenerateDts(options: DtsWorkerOptions): Promise<void>;
|
|
8
|
+
|
|
9
|
+
export { forkGenerateDts };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { D as DTSManagerOptions } from '../DTSManagerOptions-3369791f.js';
|
|
2
|
+
import '../HostOptions-cf22e0ab.js';
|
|
3
|
+
import '@module-federation/sdk';
|
|
4
|
+
|
|
5
|
+
type DtsWorkerOptions = DTSManagerOptions;
|
|
6
|
+
|
|
7
|
+
declare function forkGenerateDts(options: DtsWorkerOptions): Promise<void>;
|
|
8
|
+
|
|
9
|
+
export { forkGenerateDts };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk2NC7LVYZjs = require('../chunk-2NC7LVYZ.js');
|
|
5
|
+
|
|
6
|
+
// packages/native-federation-typescript/src/lib/forkGenerateDts.ts
|
|
7
|
+
async function forkGenerateDts(options) {
|
|
8
|
+
return _chunk2NC7LVYZjs.generateTypes.call(void 0, options);
|
|
9
|
+
}
|
|
10
|
+
process.on("message", (message) => {
|
|
11
|
+
if (message.type === "mf_exit" /* EXIT */) {
|
|
12
|
+
process.exit(0);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
_chunk2NC7LVYZjs.exposeRpc.call(void 0, forkGenerateDts);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.forkGenerateDts = forkGenerateDts;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
exposeRpc,
|
|
3
|
+
generateTypes
|
|
4
|
+
} from "../chunk-CF5CH54A.mjs";
|
|
5
|
+
|
|
6
|
+
// packages/native-federation-typescript/src/lib/forkGenerateDts.ts
|
|
7
|
+
async function forkGenerateDts(options) {
|
|
8
|
+
return generateTypes(options);
|
|
9
|
+
}
|
|
10
|
+
process.on("message", (message) => {
|
|
11
|
+
if (message.type === "mf_exit" /* EXIT */) {
|
|
12
|
+
process.exit(0);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
exposeRpc(forkGenerateDts);
|
|
16
|
+
export {
|
|
17
|
+
forkGenerateDts
|
|
18
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@module-federation/native-federation-typescript",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Bundler agnostic unplugin to share federated types",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"module federation",
|
|
7
|
+
"typescript",
|
|
8
|
+
"remote types",
|
|
9
|
+
"federated types"
|
|
10
|
+
],
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/index.mjs",
|
|
21
|
+
"require": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./rollup": {
|
|
25
|
+
"types": "./dist/rollup.d.ts",
|
|
26
|
+
"require": "./dist/rollup.js",
|
|
27
|
+
"import": "./dist/rollup.mjs"
|
|
28
|
+
},
|
|
29
|
+
"./vite": {
|
|
30
|
+
"types": "./dist/vite.d.ts",
|
|
31
|
+
"require": "./dist/vite.js",
|
|
32
|
+
"import": "./dist/vite.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./webpack": {
|
|
35
|
+
"types": "./dist/webpack.d.ts",
|
|
36
|
+
"require": "./dist/webpack.js",
|
|
37
|
+
"import": "./dist/webpack.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./esbuild": {
|
|
40
|
+
"types": "./dist/esbuild.d.ts",
|
|
41
|
+
"require": "./dist/esbuild.js",
|
|
42
|
+
"import": "./dist/esbuild.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./rspack": {
|
|
45
|
+
"types": "./dist/rspack.d.ts",
|
|
46
|
+
"require": "./dist/rspack.js",
|
|
47
|
+
"import": "./dist/rspack.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./helpers": {
|
|
50
|
+
"types": "./dist/helpers.d.ts",
|
|
51
|
+
"require": "./dist/helpers.js",
|
|
52
|
+
"import": "./dist/helpers.mjs"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"typesVersions": {
|
|
56
|
+
"*": {
|
|
57
|
+
".": [
|
|
58
|
+
"./dist/index.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"esbuild": [
|
|
61
|
+
"./dist/esbuild.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"rollup": [
|
|
64
|
+
"./dist/rollup.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"vite": [
|
|
67
|
+
"./dist/vite.d.ts"
|
|
68
|
+
],
|
|
69
|
+
"webpack": [
|
|
70
|
+
"./dist/webpack.d.ts"
|
|
71
|
+
],
|
|
72
|
+
"rspack": [
|
|
73
|
+
"./dist/rspack.d.ts"
|
|
74
|
+
],
|
|
75
|
+
"helpers": [
|
|
76
|
+
"./dist/helpers.d.ts"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"main": "./dist/index.js",
|
|
81
|
+
"types": "./dist/index.d.ts",
|
|
82
|
+
"author": "Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com> (https://github.com/ilteoood)",
|
|
83
|
+
"contributors": [
|
|
84
|
+
"zhanghang <hanric.zhang@gmail.com> https://github.com/2heal1"
|
|
85
|
+
],
|
|
86
|
+
"license": "MIT",
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"adm-zip": "^0.5.10",
|
|
89
|
+
"ansi-colors": "^4.1.3",
|
|
90
|
+
"axios": "^1.6.7",
|
|
91
|
+
"rambda": "^9.1.0",
|
|
92
|
+
"fs-extra": "9.1.0",
|
|
93
|
+
"unplugin": "^1.9.0",
|
|
94
|
+
"@module-federation/sdk": "workspace:*",
|
|
95
|
+
"@module-federation/managers": "workspace:*",
|
|
96
|
+
"lodash.clonedeepwith": "4.5.0",
|
|
97
|
+
"@module-federation/third-party-dts-extractor": "workspace:*"
|
|
98
|
+
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"typescript": "^4.9.0 || ^5.0.0",
|
|
101
|
+
"vue-tsc": "^1.0.24"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.mjs';
|
|
2
|
+
import 'unplugin';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
5
|
+
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => any;
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => any;
|
|
8
|
+
|
|
9
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.js';
|
|
2
|
+
import 'unplugin';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
5
|
+
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => any;
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => any;
|
|
8
|
+
|
|
9
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/rolldown.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkJLWFNRJLjs = require('./chunk-JLWFNRJL.js');
|
|
5
|
+
require('./chunk-VHQW5BQS.js');
|
|
6
|
+
require('./chunk-2NC7LVYZ.js');
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/rolldown.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptRemote.rolldown;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptHost.rolldown;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.NativeFederationTypeScriptHost = NativeFederationTypeScriptHost2; exports.NativeFederationTypeScriptRemote = NativeFederationTypeScriptRemote2;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NativeFederationTypeScriptHost,
|
|
3
|
+
NativeFederationTypeScriptRemote
|
|
4
|
+
} from "./chunk-VKKLMSMI.mjs";
|
|
5
|
+
import "./chunk-QYHGZU7D.mjs";
|
|
6
|
+
import "./chunk-CF5CH54A.mjs";
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/rolldown.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = NativeFederationTypeScriptRemote.rolldown;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = NativeFederationTypeScriptHost.rolldown;
|
|
11
|
+
export {
|
|
12
|
+
NativeFederationTypeScriptHost2 as NativeFederationTypeScriptHost,
|
|
13
|
+
NativeFederationTypeScriptRemote2 as NativeFederationTypeScriptRemote
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as unplugin from 'unplugin';
|
|
2
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.mjs';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
5
|
+
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => unplugin.RollupPlugin | unplugin.RollupPlugin[];
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => unplugin.RollupPlugin | unplugin.RollupPlugin[];
|
|
8
|
+
|
|
9
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as unplugin from 'unplugin';
|
|
2
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.js';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
2
5
|
|
|
3
|
-
declare const NativeFederationTypeScriptRemote: (options:
|
|
4
|
-
declare const NativeFederationTypeScriptHost: (options:
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => unplugin.RollupPlugin | unplugin.RollupPlugin[];
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => unplugin.RollupPlugin | unplugin.RollupPlugin[];
|
|
5
8
|
|
|
6
9
|
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/rollup.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkJLWFNRJLjs = require('./chunk-JLWFNRJL.js');
|
|
5
|
+
require('./chunk-VHQW5BQS.js');
|
|
6
|
+
require('./chunk-2NC7LVYZ.js');
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/rollup.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptRemote.rollup;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptHost.rollup;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.NativeFederationTypeScriptHost = NativeFederationTypeScriptHost2; exports.NativeFederationTypeScriptRemote = NativeFederationTypeScriptRemote2;
|
package/dist/rollup.mjs
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
NativeFederationTypeScriptHost,
|
|
3
|
+
NativeFederationTypeScriptRemote
|
|
4
|
+
} from "./chunk-VKKLMSMI.mjs";
|
|
5
|
+
import "./chunk-QYHGZU7D.mjs";
|
|
6
|
+
import "./chunk-CF5CH54A.mjs";
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/rollup.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = NativeFederationTypeScriptRemote.rollup;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = NativeFederationTypeScriptHost.rollup;
|
|
11
|
+
export {
|
|
12
|
+
NativeFederationTypeScriptHost2 as NativeFederationTypeScriptHost,
|
|
13
|
+
NativeFederationTypeScriptRemote2 as NativeFederationTypeScriptRemote
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as unplugin from 'unplugin';
|
|
2
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.mjs';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
5
|
+
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => unplugin.RspackPluginInstance;
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => unplugin.RspackPluginInstance;
|
|
8
|
+
|
|
9
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as unplugin from 'unplugin';
|
|
2
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.js';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
2
5
|
|
|
3
|
-
declare const NativeFederationTypeScriptRemote: (options:
|
|
4
|
-
declare const NativeFederationTypeScriptHost: (options:
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => unplugin.RspackPluginInstance;
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => unplugin.RspackPluginInstance;
|
|
5
8
|
|
|
6
9
|
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/rspack.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkJLWFNRJLjs = require('./chunk-JLWFNRJL.js');
|
|
5
|
+
require('./chunk-VHQW5BQS.js');
|
|
6
|
+
require('./chunk-2NC7LVYZ.js');
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/rspack.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptRemote.rspack;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptHost.rspack;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.NativeFederationTypeScriptHost = NativeFederationTypeScriptHost2; exports.NativeFederationTypeScriptRemote = NativeFederationTypeScriptRemote2;
|
package/dist/rspack.mjs
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
NativeFederationTypeScriptHost,
|
|
3
|
+
NativeFederationTypeScriptRemote
|
|
4
|
+
} from "./chunk-VKKLMSMI.mjs";
|
|
5
|
+
import "./chunk-QYHGZU7D.mjs";
|
|
6
|
+
import "./chunk-CF5CH54A.mjs";
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/rspack.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = NativeFederationTypeScriptRemote.rspack;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = NativeFederationTypeScriptHost.rspack;
|
|
11
|
+
export {
|
|
12
|
+
NativeFederationTypeScriptHost2 as NativeFederationTypeScriptHost,
|
|
13
|
+
NativeFederationTypeScriptRemote2 as NativeFederationTypeScriptRemote
|
|
14
|
+
};
|
package/dist/vite.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.mjs';
|
|
2
|
+
import 'unplugin';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
5
|
+
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => any;
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => any;
|
|
8
|
+
|
|
9
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.js';
|
|
2
|
+
import 'unplugin';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
2
5
|
|
|
3
|
-
declare const NativeFederationTypeScriptRemote: (options:
|
|
4
|
-
declare const NativeFederationTypeScriptHost: (options:
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => any;
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => any;
|
|
5
8
|
|
|
6
9
|
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/vite.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkJLWFNRJLjs = require('./chunk-JLWFNRJL.js');
|
|
5
|
+
require('./chunk-VHQW5BQS.js');
|
|
6
|
+
require('./chunk-2NC7LVYZ.js');
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/vite.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptRemote.vite;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptHost.vite;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.NativeFederationTypeScriptHost = NativeFederationTypeScriptHost2; exports.NativeFederationTypeScriptRemote = NativeFederationTypeScriptRemote2;
|
package/dist/vite.mjs
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
NativeFederationTypeScriptHost,
|
|
3
|
+
NativeFederationTypeScriptRemote
|
|
4
|
+
} from "./chunk-VKKLMSMI.mjs";
|
|
5
|
+
import "./chunk-QYHGZU7D.mjs";
|
|
6
|
+
import "./chunk-CF5CH54A.mjs";
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/vite.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = NativeFederationTypeScriptRemote.vite;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = NativeFederationTypeScriptHost.vite;
|
|
11
|
+
export {
|
|
12
|
+
NativeFederationTypeScriptHost2 as NativeFederationTypeScriptHost,
|
|
13
|
+
NativeFederationTypeScriptRemote2 as NativeFederationTypeScriptRemote
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WebpackPluginInstance } from 'unplugin';
|
|
2
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.mjs';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
5
|
+
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => WebpackPluginInstance;
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => WebpackPluginInstance;
|
|
8
|
+
|
|
9
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WebpackPluginInstance } from 'unplugin';
|
|
2
|
+
import { EnhancedRemoteOptions, EnhancedHostOptions } from './index.js';
|
|
3
|
+
import './HostOptions-cf22e0ab.js';
|
|
4
|
+
import '@module-federation/sdk';
|
|
2
5
|
|
|
3
|
-
declare const NativeFederationTypeScriptRemote: (options:
|
|
4
|
-
declare const NativeFederationTypeScriptHost: (options:
|
|
6
|
+
declare const NativeFederationTypeScriptRemote: (options: EnhancedRemoteOptions) => WebpackPluginInstance;
|
|
7
|
+
declare const NativeFederationTypeScriptHost: (options: EnhancedHostOptions) => WebpackPluginInstance;
|
|
5
8
|
|
|
6
9
|
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/webpack.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkJLWFNRJLjs = require('./chunk-JLWFNRJL.js');
|
|
5
|
+
require('./chunk-VHQW5BQS.js');
|
|
6
|
+
require('./chunk-2NC7LVYZ.js');
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/webpack.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptRemote.webpack;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = _chunkJLWFNRJLjs.NativeFederationTypeScriptHost.webpack;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.NativeFederationTypeScriptHost = NativeFederationTypeScriptHost2; exports.NativeFederationTypeScriptRemote = NativeFederationTypeScriptRemote2;
|
package/dist/webpack.mjs
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
NativeFederationTypeScriptHost,
|
|
3
|
+
NativeFederationTypeScriptRemote
|
|
4
|
+
} from "./chunk-VKKLMSMI.mjs";
|
|
5
|
+
import "./chunk-QYHGZU7D.mjs";
|
|
6
|
+
import "./chunk-CF5CH54A.mjs";
|
|
7
|
+
|
|
8
|
+
// packages/native-federation-typescript/src/webpack.ts
|
|
9
|
+
var NativeFederationTypeScriptRemote2 = NativeFederationTypeScriptRemote.webpack;
|
|
10
|
+
var NativeFederationTypeScriptHost2 = NativeFederationTypeScriptHost.webpack;
|
|
11
|
+
export {
|
|
12
|
+
NativeFederationTypeScriptHost2 as NativeFederationTypeScriptHost,
|
|
13
|
+
NativeFederationTypeScriptRemote2 as NativeFederationTypeScriptRemote
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/native-federation-typescript",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Bundler agnostic unplugin to share federated types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"module federation",
|
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
"remote types",
|
|
9
9
|
"federated types"
|
|
10
10
|
],
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
11
18
|
"exports": {
|
|
12
19
|
".": {
|
|
13
20
|
"import": "./dist/index.mjs",
|
|
@@ -38,21 +45,59 @@
|
|
|
38
45
|
"types": "./dist/rspack.d.ts",
|
|
39
46
|
"require": "./dist/rspack.js",
|
|
40
47
|
"import": "./dist/rspack.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./helpers": {
|
|
50
|
+
"types": "./dist/helpers.d.ts",
|
|
51
|
+
"require": "./dist/helpers.js",
|
|
52
|
+
"import": "./dist/helpers.mjs"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"typesVersions": {
|
|
56
|
+
"*": {
|
|
57
|
+
".": [
|
|
58
|
+
"./dist/index.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"esbuild": [
|
|
61
|
+
"./dist/esbuild.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"rollup": [
|
|
64
|
+
"./dist/rollup.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"vite": [
|
|
67
|
+
"./dist/vite.d.ts"
|
|
68
|
+
],
|
|
69
|
+
"webpack": [
|
|
70
|
+
"./dist/webpack.d.ts"
|
|
71
|
+
],
|
|
72
|
+
"rspack": [
|
|
73
|
+
"./dist/rspack.d.ts"
|
|
74
|
+
],
|
|
75
|
+
"helpers": [
|
|
76
|
+
"./dist/helpers.d.ts"
|
|
77
|
+
]
|
|
41
78
|
}
|
|
42
79
|
},
|
|
43
80
|
"main": "./dist/index.js",
|
|
44
81
|
"types": "./dist/index.d.ts",
|
|
45
82
|
"author": "Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com> (https://github.com/ilteoood)",
|
|
83
|
+
"contributors": [
|
|
84
|
+
"zhanghang <hanric.zhang@gmail.com> https://github.com/2heal1"
|
|
85
|
+
],
|
|
46
86
|
"license": "MIT",
|
|
47
87
|
"dependencies": {
|
|
48
88
|
"adm-zip": "^0.5.10",
|
|
49
89
|
"ansi-colors": "^4.1.3",
|
|
50
|
-
"axios": "^1.
|
|
51
|
-
"rambda": "^
|
|
52
|
-
"
|
|
90
|
+
"axios": "^1.6.7",
|
|
91
|
+
"rambda": "^9.1.0",
|
|
92
|
+
"fs-extra": "9.1.0",
|
|
93
|
+
"unplugin": "^1.9.0",
|
|
94
|
+
"lodash.clonedeepwith": "4.5.0",
|
|
95
|
+
"@module-federation/sdk": "0.1.2",
|
|
96
|
+
"@module-federation/managers": "0.1.2",
|
|
97
|
+
"@module-federation/third-party-dts-extractor": "0.0.18"
|
|
53
98
|
},
|
|
54
99
|
"peerDependencies": {
|
|
55
100
|
"typescript": "^4.9.0 || ^5.0.0",
|
|
56
101
|
"vue-tsc": "^1.0.24"
|
|
57
102
|
}
|
|
58
|
-
}
|
|
103
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
|
-
|
|
5
|
-
# 0.1.0 (2023-04-05)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* build ([d0b2f72](https://github.com/module-federation/nextjs-mf/commit/d0b2f72f4fc3647825412be1574311c3152cf167))
|
|
11
|
-
* build step ([a217170](https://github.com/module-federation/nextjs-mf/commit/a21717096cbc09bff20d3aeebfea2f3533afb0d7))
|
|
12
|
-
* compiler instance ([e5c249d](https://github.com/module-federation/nextjs-mf/commit/e5c249d41d68339886268337654ff47b31b06a3a))
|
|
13
|
-
* deps ([a378441](https://github.com/module-federation/nextjs-mf/commit/a37844194a3f189cc5863bbdd4776259bce69fa4))
|
|
14
|
-
* dirtree tests ([5cb49fd](https://github.com/module-federation/nextjs-mf/commit/5cb49fd1c6520311a7d2e7d2b37a93389a500715))
|
|
15
|
-
* eslintrc ([0f69dee](https://github.com/module-federation/nextjs-mf/commit/0f69dee253c2c608b2367d545c7d4a57ad0c2ca5))
|
|
16
|
-
* format ([25fb765](https://github.com/module-federation/nextjs-mf/commit/25fb7659481287a791e9de4fe839e980dbf06968))
|
|
17
|
-
* readme ([eaca0b3](https://github.com/module-federation/nextjs-mf/commit/eaca0b311d3b8d9e73309cb92d9a9488f9fc23c0))
|
|
18
|
-
* readme ([fc0e5dc](https://github.com/module-federation/nextjs-mf/commit/fc0e5dc26e617664224e1c10548b151a44f8dff9))
|
|
19
|
-
* README.md ([9159171](https://github.com/module-federation/nextjs-mf/commit/91591712e9a103fff351f0a168c149470c0d69ad))
|
|
20
|
-
* remove changelog ([724918e](https://github.com/module-federation/nextjs-mf/commit/724918ebf888297689b6ed700bd14ec01fd1ef35))
|
|
21
|
-
* ts build ([9ed3a52](https://github.com/module-federation/nextjs-mf/commit/9ed3a527d0ba903b6cfa6023a7ad5da63781970c))
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Features
|
|
25
|
-
|
|
26
|
-
* federated tests plugin ([063ab33](https://github.com/module-federation/nextjs-mf/commit/063ab336c4830aff4f5bd3b9894df60b4651a9be))
|
|
27
|
-
* native-federation-typescript plugin ([#692](https://github.com/module-federation/nextjs-mf/issues/692)) ([b41c5aa](https://github.com/module-federation/nextjs-mf/commit/b41c5aacfeda0fada5b426086658235edfd86cdd))
|
|
28
|
-
* test command ([3ade629](https://github.com/module-federation/nextjs-mf/commit/3ade629488f4ea1549314b82b41caef9a046da9f))
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface HostOptions {
|
|
2
|
-
moduleFederationConfig: any;
|
|
3
|
-
typesFolder?: string;
|
|
4
|
-
deleteTypesFolder?: boolean;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
interface RemoteOptions {
|
|
8
|
-
moduleFederationConfig: any;
|
|
9
|
-
tsConfigPath?: string;
|
|
10
|
-
typesFolder?: string;
|
|
11
|
-
compiledTypesFolder?: string;
|
|
12
|
-
deleteTypesFolder?: boolean;
|
|
13
|
-
additionalFilesToCompile?: string[];
|
|
14
|
-
compilerInstance?: 'tsc' | 'vue-tsc';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { HostOptions as H, RemoteOptions as R };
|