@module-federation/third-party-dts-extractor 2.1.0 → 2.2.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/CHANGELOG.md +4 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +5 -5
- package/dist/package.json +11 -2
- package/package.json +11 -2
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @module-federation/third-party-dts-extractor
|
|
2
2
|
|
|
3
|
+
## 2.2.1
|
|
4
|
+
|
|
5
|
+
## 2.2.0
|
|
6
|
+
|
|
3
7
|
## 2.1.0
|
|
4
8
|
|
|
5
9
|
## 2.0.1
|
|
@@ -51,7 +55,6 @@
|
|
|
51
55
|
### Patch Changes
|
|
52
56
|
|
|
53
57
|
- a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3
|
|
54
|
-
|
|
55
58
|
- Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates
|
|
56
59
|
- Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations
|
|
57
60
|
- Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes
|
|
@@ -60,7 +63,6 @@
|
|
|
60
63
|
- Updated build configurations and dependencies to support latest versions
|
|
61
64
|
|
|
62
65
|
- d31a326: refactor: sink React packages from root to individual packages
|
|
63
|
-
|
|
64
66
|
- Removed React dependencies from root package.json and moved them to packages that actually need them
|
|
65
67
|
- Fixed rsbuild-plugin configuration to match workspace patterns
|
|
66
68
|
- Updated tests to handle platform-specific files
|
package/dist/index.js
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
//
|
|
9
|
+
// src/ThirdPartyExtractor.ts
|
|
10
10
|
var _findpkg = require('find-pkg'); var _findpkg2 = _interopRequireDefault(_findpkg);
|
|
11
11
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
12
12
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
13
13
|
var _resolve = require('resolve'); var _resolve2 = _interopRequireDefault(_resolve);
|
|
14
14
|
|
|
15
|
-
//
|
|
15
|
+
// src/utils.ts
|
|
16
16
|
|
|
17
17
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
18
18
|
function getTypedName(name) {
|
|
@@ -63,7 +63,7 @@ function getPackageRootDir(packageName) {
|
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
//
|
|
66
|
+
// src/ThirdPartyExtractor.ts
|
|
67
67
|
var ignoredPkgs = ["typescript"];
|
|
68
68
|
var isNodeUtils = (pkgJsonPath, importPath) => {
|
|
69
69
|
return pkgJsonPath === importPath;
|
package/dist/index.mjs
CHANGED
|
@@ -6,15 +6,15 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
//
|
|
9
|
+
// src/ThirdPartyExtractor.ts
|
|
10
10
|
import findPkg from "find-pkg";
|
|
11
11
|
import fs2 from "fs-extra";
|
|
12
12
|
import path2 from "path";
|
|
13
13
|
import resolve from "resolve";
|
|
14
14
|
|
|
15
|
-
//
|
|
16
|
-
import path from "
|
|
17
|
-
import fs from "
|
|
15
|
+
// src/utils.ts
|
|
16
|
+
import path from "path";
|
|
17
|
+
import fs from "fs";
|
|
18
18
|
function getTypedName(name) {
|
|
19
19
|
return `@types/${name.replace(/^@/, "").replace("/", "__")}`;
|
|
20
20
|
}
|
|
@@ -63,7 +63,7 @@ function getPackageRootDir(packageName) {
|
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
//
|
|
66
|
+
// src/ThirdPartyExtractor.ts
|
|
67
67
|
var ignoredPkgs = ["typescript"];
|
|
68
68
|
var isNodeUtils = (pkgJsonPath, importPath) => {
|
|
69
69
|
return pkgJsonPath === importPath;
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/third-party-dts-extractor",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"README.md"
|
|
@@ -39,6 +39,15 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/fs-extra": "9.0.13",
|
|
41
41
|
"@types/node": "^20.19.5",
|
|
42
|
-
"@types/react": "^18.3.11"
|
|
42
|
+
"@types/react": "^18.3.11",
|
|
43
|
+
"vitest": "1.6.0",
|
|
44
|
+
"react": "^18",
|
|
45
|
+
"tsup": "7.3.0"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "tsup --config tsup.config.ts --outDir dist && cp package.json dist && cp *.md dist",
|
|
49
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.ts\"",
|
|
50
|
+
"test": "pnpm exec vitest run --passWithNoTests --config vite.config.mts",
|
|
51
|
+
"pre-release": "pnpm run test && pnpm run build"
|
|
43
52
|
}
|
|
44
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/third-party-dts-extractor",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"README.md"
|
|
@@ -39,6 +39,15 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/fs-extra": "9.0.13",
|
|
41
41
|
"@types/node": "^20.19.5",
|
|
42
|
-
"@types/react": "^18.3.11"
|
|
42
|
+
"@types/react": "^18.3.11",
|
|
43
|
+
"vitest": "1.6.0",
|
|
44
|
+
"react": "^18",
|
|
45
|
+
"tsup": "7.3.0"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "tsup --config tsup.config.ts --outDir dist && cp package.json dist && cp *.md dist",
|
|
49
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.ts\"",
|
|
50
|
+
"test": "pnpm exec vitest run --passWithNoTests --config vite.config.mts",
|
|
51
|
+
"pre-release": "pnpm run test && pnpm run build"
|
|
43
52
|
}
|
|
44
53
|
}
|