@elmeragroup/internal 0.2.0-canary.5 → 0.2.0-canary.6

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.
@@ -56,8 +56,14 @@ function readRscStatus(sourceFile) {
56
56
  }
57
57
  return "server";
58
58
  }
59
- /** Package name a forwarded prop comes from, e.g. `@base-ui/react` or `react`. */
60
- function declaringPackage(declarationPath) {
59
+ /**
60
+ * Package name a forwarded prop comes from, e.g. `@base-ui/react` or `react`. TypeScript's default
61
+ * library is `typescript` wherever the compiler installed it: TypeScript 7 ships it inside a
62
+ * per-platform package such as `@typescript/typescript-linux-x64`, and an artifact must not depend
63
+ * on the machine that generated it.
64
+ */
65
+ function declaringPackage(context, declarationPath) {
66
+ if (context.program.getSourceFileMetadata(declarationPath)?.isDefaultLibrary === true) return "typescript";
61
67
  const last = declarationPath.lastIndexOf("/node_modules/");
62
68
  if (last === -1) return null;
63
69
  const segments = declarationPath.slice(last + 14).split("/");
@@ -187,7 +193,7 @@ function forwardedOfProps(context, properties) {
187
193
  if (!isForwardedProp(context, property)) continue;
188
194
  count += 1;
189
195
  for (const declaration of property.declarations) {
190
- const packageName = declaringPackage(declaration.path);
196
+ const packageName = declaringPackage(context, declaration.path);
191
197
  if (packageName !== null) from.add(packageName);
192
198
  }
193
199
  }
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { n as ApiArtifactsError, t as ApiArtifactsDriftError } from "./errors-CT
3
3
  //#region src/index.ts
4
4
  /** Generates API artifacts with the Elmera UI documentation defaults. */
5
5
  async function generateApiArtifacts(options) {
6
- const { generateApiArtifacts: generate } = await import("./dist-CztIPpu1.mjs");
6
+ const { generateApiArtifacts: generate } = await import("./dist-DR31PLLJ.mjs");
7
7
  return generate({
8
8
  ...options,
9
9
  includeExternalTypes: options.includeExternalTypes ?? ["@base-ui/react"],
package/package.json CHANGED
@@ -11,14 +11,14 @@
11
11
  "@types/node": "25.9.5",
12
12
  "vitest": "4.1.11",
13
13
  "tsdown": "0.23.0",
14
- "@elmeragroup/api-extractor": "0.0.0",
15
14
  "@elmeragroup/typescript-config": "0.0.0",
15
+ "@elmeragroup/api-artifacts": "0.0.0",
16
+ "@elmeragroup/api-extractor": "0.0.0",
16
17
  "@elmeragroup/oxlint-plugin": "0.0.0",
17
18
  "@elmeragroup/oxlint-plugin-anti-slop": "0.0.0",
18
- "@elmeragroup/api-artifacts": "0.0.0",
19
19
  "@elmeragroup/release": "0.0.0"
20
20
  },
21
- "version": "0.2.0-canary.5",
21
+ "version": "0.2.0-canary.6",
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/index.d.mts",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "sideEffects": false,
71
71
  "elmeraRelease": {
72
- "commit": "56943afa4d2a0630618cc252cb8f45c1121b4d08",
72
+ "commit": "cd971badfc723d1194fa8052c71978f6d490f397",
73
73
  "channel": "canary"
74
74
  },
75
75
  "scripts": {