@module-federation/third-party-dts-extractor 2.0.1 → 2.2.0

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # @module-federation/third-party-dts-extractor
2
2
 
3
+ ## 2.2.0
4
+
5
+ ## 2.1.0
6
+
3
7
  ## 2.0.1
4
8
 
5
9
  ## 2.0.0
@@ -49,7 +53,6 @@
49
53
  ### Patch Changes
50
54
 
51
55
  - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3
52
-
53
56
  - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates
54
57
  - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations
55
58
  - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes
@@ -58,7 +61,6 @@
58
61
  - Updated build configurations and dependencies to support latest versions
59
62
 
60
63
  - d31a326: refactor: sink React packages from root to individual packages
61
-
62
64
  - Removed React dependencies from root package.json and moved them to packages that actually need them
63
65
  - Fixed rsbuild-plugin configuration to match workspace patterns
64
66
  - 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
- // packages/third-party-dts-extractor/src/ThirdPartyExtractor.ts
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
- // packages/third-party-dts-extractor/src/utils.ts
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
- // packages/third-party-dts-extractor/src/ThirdPartyExtractor.ts
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
- // packages/third-party-dts-extractor/src/ThirdPartyExtractor.ts
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
- // packages/third-party-dts-extractor/src/utils.ts
16
- import path from "node:path";
17
- import fs from "node:fs";
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
- // packages/third-party-dts-extractor/src/ThirdPartyExtractor.ts
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.0.1",
3
+ "version": "2.2.0",
4
4
  "files": [
5
5
  "dist/",
6
6
  "README.md"
@@ -40,5 +40,11 @@
40
40
  "@types/fs-extra": "9.0.13",
41
41
  "@types/node": "^20.19.5",
42
42
  "@types/react": "^18.3.11"
43
+ },
44
+ "scripts": {
45
+ "build": "tsup --config tsup.config.ts --outDir dist && cp package.json dist && cp *.md dist",
46
+ "lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.ts\"",
47
+ "test": "pnpm exec vitest run --passWithNoTests --config vite.config.mts",
48
+ "pre-release": "pnpm run test && pnpm run build"
43
49
  }
44
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/third-party-dts-extractor",
3
- "version": "2.0.1",
3
+ "version": "2.2.0",
4
4
  "files": [
5
5
  "dist/",
6
6
  "README.md"
@@ -40,5 +40,11 @@
40
40
  "@types/fs-extra": "9.0.13",
41
41
  "@types/node": "^20.19.5",
42
42
  "@types/react": "^18.3.11"
43
+ },
44
+ "scripts": {
45
+ "build": "tsup --config tsup.config.ts --outDir dist && cp package.json dist && cp *.md dist",
46
+ "lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.ts\"",
47
+ "test": "pnpm exec vitest run --passWithNoTests --config vite.config.mts",
48
+ "pre-release": "pnpm run test && pnpm run build"
43
49
  }
44
50
  }