@ariestools/toolchain 8.7.5 → 8.7.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"analyzePackage.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/analyzePackage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAA;AAG/D,OAAO,KAAK,EAOV,0BAA0B,EAC3B,MAAM,aAAa,CAAA;AAMpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGtD,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,kBAAkB,CAAA;IAC1B,MAAM,EAAE,2BAA2B,CAAA;IACnC,qEAAqE;IACrE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACtC,SAAS,EAAE,SAAS,CAAA;IACpB,oEAAoE;IACpE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC7B;AA2QD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,GAC/D,EAAE,oBAAoB,GAAG,0BAA0B,CAsDnD"}
1
+ {"version":3,"file":"analyzePackage.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/analyzePackage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAA;AAG/D,OAAO,KAAK,EAOV,0BAA0B,EAC3B,MAAM,aAAa,CAAA;AAOpB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGtD,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,kBAAkB,CAAA;IAC1B,MAAM,EAAE,2BAA2B,CAAA;IACnC,qEAAqE;IACrE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACtC,SAAS,EAAE,SAAS,CAAA;IACpB,oEAAoE;IACpE,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC7B;AAiXD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,GAC/D,EAAE,oBAAoB,GAAG,0BAA0B,CAuDnD"}
@@ -11,9 +11,11 @@ export interface DependencySignals {
11
11
  /**
12
12
  * True when the install tree holds more than one version of the dependency —
13
13
  * the duplication-risk condition of the tree-shaking modifier
14
- * (API-EXPOSURE-INDEX.md section 9). Only the pnpm virtual store can be read
15
- * cheaply; on other layouts the answer is unknown, so the modifier keeps its
16
- * historical behavior and applies.
14
+ * (API-EXPOSURE-INDEX.md section 9). The pnpm lockfile is the authoritative
15
+ * source; the `.pnpm` virtual store directory is the fallback (it can hold
16
+ * stale entries from prior installs, so it may over-report). On other
17
+ * layouts the answer is unknown, so the modifier keeps its historical
18
+ * behavior and applies.
17
19
  */
18
20
  export declare function hasInstalledVersionMultiplicity(workspaceDir: string, dependency: string): boolean;
19
21
  /** Walks up from `startDir` looking for `node_modules/<dependency>/package.json`. */
@@ -1 +1 @@
1
- {"version":3,"file":"depSignals.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/depSignals.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,gEAAgE;AAChE,eAAO,MAAM,qBAAqB,iBAAiB,CAAA;AAoBnD,MAAM,WAAW,iBAAiB;IAChC,iEAAiE;IACjE,GAAG,EAAE,OAAO,CAAA;IACZ,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,gDAAgD;IAChD,eAAe,EAAE,OAAO,CAAA;CACzB;AA0BD;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAUjG;AAED,qFAAqF;AACrF,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAS1F;AA6FD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAiC5G"}
1
+ {"version":3,"file":"depSignals.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/depSignals.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,gEAAgE;AAChE,eAAO,MAAM,qBAAqB,iBAAiB,CAAA;AAoBnD,MAAM,WAAW,iBAAiB;IAChC,iEAAiE;IACjE,GAAG,EAAE,OAAO,CAAA;IACZ,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,gDAAgD;IAChD,eAAe,EAAE,OAAO,CAAA;CACzB;AAgFD;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAmBjG;AAED,qFAAqF;AACrF,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAS1F;AAqKD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAqC5G"}
@@ -4,12 +4,26 @@ import ts from 'typescript';
4
4
  * Relative paths, `#` subpath imports, and `node:` builtins are internal.
5
5
  */
6
6
  export declare function packageNameFromSpecifier(specifier: string): string | undefined;
7
+ /**
8
+ * External packages imported by the workspace's own sources, split by import
9
+ * kind. Only static imports and re-exports are visible: dynamic `import()`
10
+ * and `require` calls are not scanned, so absence from both sets is NOT
11
+ * evidence of "unused" — only a positive `typeOnly` membership (imported,
12
+ * and exclusively as types) supports a runtime-need conclusion.
13
+ */
14
+ export interface ImportedPackages {
15
+ /** Imported somewhere, but exclusively via type-only imports/re-exports. */
16
+ typeOnly: Set<string>;
17
+ /** Imported in at least one value position (a runtime need). */
18
+ value: Set<string>;
19
+ }
7
20
  /**
8
21
  * Collects the external packages the workspace's own source files import
9
- * (static imports and re-exports reachable from the entry points). This is
10
- * the "does this package use the dependency itself" signal consumed by the
11
- * `peerForwarding: 'when-used'` policy — a peer contract inherited from a
12
- * dependency chain only forwards conclusively when the package appears here.
22
+ * (static imports and re-exports reachable from the entry points), split
23
+ * into value-position imports and exclusively-type-only imports. This feeds
24
+ * two policies: `peerForwarding: 'when-used'`/`'when-exposed'` (does this
25
+ * package need the peer itself) and the type-only chain-root check (does the
26
+ * dependency imposing a peer contract ever execute here).
13
27
  */
14
- export declare function getImportedPackages(program: ts.Program, workspaceDir: string): Set<string>;
28
+ export declare function getImportedPackages(program: ts.Program, workspaceDir: string): ImportedPackages;
15
29
  //# sourceMappingURL=importedPackages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"importedPackages.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/importedPackages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAO9E;AAaD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAQ1F"}
1
+ {"version":3,"file":"importedPackages.d.ts","sourceRoot":"","sources":["../../../../src/actions/api-exposure/analyzer/importedPackages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAI3B;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAO9E;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4EAA4E;IAC5E,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACrB,gEAAgE;IAChE,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CACnB;AAgDD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,gBAAgB,CAW/F"}
@@ -1 +1 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/actions/api-exposure/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,iBAAiB,EAiLxC,CAAA;AAID,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,MAAM,CAA+B,CAAA;AAE5E,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAEpE"}
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/actions/api-exposure/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,iBAAiB,EAmMxC,CAAA;AAID,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,MAAM,CAA+B,CAAA;AAE5E,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAEpE"}
@@ -8,15 +8,25 @@ export interface PeerSource {
8
8
  }
9
9
  /**
10
10
  * Peer-chain forwarding policy (`commands.apiExposure.peerForwarding`),
11
- * honored by deplint in `classifier: 'aei'` mode. Under `'when-used'`, a
12
- * peer contract imposed by a dependency chain only forwards into this
13
- * package's `peerDependencies` when the package itself imports the peer;
14
- * otherwise `devDependencies` satisfy it locally and installers resolve the
15
- * consumer-side contract.
11
+ * honored by deplint in `classifier: 'aei'` mode. Under `'when-used'` and
12
+ * `'when-exposed'`, a peer contract imposed by a dependency chain only
13
+ * forwards into this package's `peerDependencies` when the peer appears in
14
+ * `importedModules`; otherwise `devDependencies` satisfy it locally and
15
+ * installers resolve the consumer-side contract. The caller builds
16
+ * `importedModules` to match the mode: every import for `'when-used'`,
17
+ * only runtime dist imports plus shipped-d.ts type imports (the
18
+ * enforcement-grade exposure signal) for `'when-exposed'`.
16
19
  */
17
20
  export interface PeerForwardingPolicy {
18
21
  importedModules: ReadonlySet<string>;
19
- mode: 'always' | 'when-used';
22
+ mode: 'always' | 'when-exposed' | 'when-used';
23
+ /**
24
+ * Peers vouched for by workspace-internal surfaces this package ships
25
+ * (see `getInternalSurfaceVouchedPeers`): a re-export barrel never names
26
+ * these in its own files, yet they flow through its public surface, so
27
+ * they forward even though `importedModules` cannot see them.
28
+ */
29
+ vouchedPeers?: ReadonlySet<string>;
20
30
  }
21
31
  /** True when the policy (if any) obliges this package to forward `peer`. */
22
32
  export declare function isPeerForwarded(policy: PeerForwardingPolicy | undefined, peer: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"getUnsatisfiedPeerDependencies.d.ts","sourceRoot":"","sources":["../../../../src/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AC,CAGb;AAOD;;;;;GAKG;AACH,wBAAgB,qCAAqC,CACnD,QAAQ,EAAE,MAAM,EAChB,EACE,YAAY,EAAE,eAAe,EAAE,gBAAgB,GAChD,EAAE,kBAAkB,GACpB,GAAG,CAAC,MAAM,CAAC,CAQb;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;;;;;OAQG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC;AAgBD;;;;;GAKG;AACH,wBAAgB,gDAAgD,CAC9D,QAAQ,EAAE,MAAM,EAChB,EACE,YAAY,EAAE,eAAe,EAAE,gBAAgB,GAChD,EAAE,kBAAkB,EACrB,OAAO,GAAE,2BAAgC,GACxC,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAa3B;AAED;;;;;;GAMG;AACH,wBAAgB,0CAA0C,CACxD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,GACzB,GAAG,CAAC,MAAM,CAAC,CAEb;AA2ID,wBAAgB,oBAAoB,CAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS,EAC7B,EACE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,sBAAsB,GACxE,EAAE,kBAAkB,EACrB,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACrB,UAAU,CAAC,EAAE,OAAO,EACpB,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EACxC,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACvB,UAAU,CAAC,EAAE,oBAAoB,GAChC,eAAe,EAAE,CAkCnB;AA0BD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,EAAE,CAIlG"}
1
+ {"version":3,"file":"getUnsatisfiedPeerDependencies.d.ts","sourceRoot":"","sources":["../../../../src/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.ts"],"names":[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pure re-export barrel never names the peers it
4
+ * re-exposes in its own imports or emitted d.ts, so scan-based forwarding
5
+ * evidence (`PeerForwardingPolicy.importedModules`) cannot see them. The
6
+ * re-exported internal package's own shipped surface is the next-best
7
+ * authority: any peer it declares AND references from its dist runtime or
8
+ * emitted d.ts flows through every package that ships its surface.
9
+ * Recurses through nested internal surfaces (a barrel re-exporting a
10
+ * facade re-exporting core), depth-limited.
11
+ */
12
+ export declare function getInternalSurfaceVouchedPeers(location: string, shippedImports: Iterable<string>, workspaceNames: ReadonlySet<string>): Set<string>;
13
+ //# sourceMappingURL=getInternalSurfaceVouchedPeers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInternalSurfaceVouchedPeers.d.ts","sourceRoot":"","sources":["../../../src/actions/deplint/getInternalSurfaceVouchedPeers.ts"],"names":[],"mappings":"AAgEA;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,EAChC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,GAClC,GAAG,CAAC,MAAM,CAAC,CAyBb"}
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../src/actions/deplint/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAIlD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAY5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,EAAmC,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAE1F,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,4BAA4B;IAC3C,0FAA0F;IAC1F,iBAAiB,CAAC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A0F;IAC1F,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,0EAA0E;IAC1E,UAAU,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;IAC7B,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACrB,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACvB,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACvB,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,cAAc,CAAC,EAAE,aAAa,CAAA;IAC9B,aAAa,CAAC,EAAE,OAAO,GAAG,WAAW,CAAA;IACrC,gEAAgE;IAChE,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC7B;AAmGD,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,SAAS,EACpB,OAAO,GAAE,4BAAiC,GACzC,uBAAuB,CA0GzB"}
@@ -50,11 +50,23 @@ export interface ApiExposureDependencyOverride {
50
50
  * - `'always'`: every unmet chain peer is conclusively a `peerDependency`
51
51
  * here (`aei.signal.required-peer`, ∞).
52
52
  * - `'when-used'`: the conclusive rule fires only for chain peers this
53
- * package itself imports; peers it never touches surface as the
54
- * informational `aei.signal.inherited-peer` instead — installers resolve
55
- * the contract against the consuming context.
53
+ * package itself imports or exposes through its public API; peers it
54
+ * never touches surface as the informational `aei.signal.inherited-peer`
55
+ * instead — installers resolve the contract against the consuming
56
+ * context.
57
+ * - `'when-exposed'`: the conclusive rule fires only for chain peers whose
58
+ * types appear in this package's public API or that it value-imports;
59
+ * untouched peers surface as the informational
60
+ * `aei.signal.absorbable-peer` — declaring them in this package's own
61
+ * `dependencies` (the provider pattern) discharges the contract without
62
+ * burdening consumers.
63
+ *
64
+ * Under `'when-used'` and `'when-exposed'`, a peer imposed only by chains
65
+ * whose roots this package imports exclusively as types surfaces as the
66
+ * informational `aei.signal.type-only-chain-peer` — such chains never
67
+ * execute here, so there is no runtime contract to forward.
56
68
  */
57
- export type ApiExposurePeerForwarding = 'always' | 'when-used';
69
+ export type ApiExposurePeerForwarding = 'always' | 'when-exposed' | 'when-used';
58
70
  /**
59
71
  * Configuration for `xy api-exposure` (API Exposure Index analysis).
60
72
  * See `src/actions/api-exposure/API-EXPOSURE-INDEX.md` for the full spec.
@@ -1 +1 @@
1
- {"version":3,"file":"ApiExposureConfig.d.ts","sourceRoot":"","sources":["../../../../src/actions/package/compile/ApiExposureConfig.ts"],"names":[],"mappings":"AAAA,KAAK,oBAAoB,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAA;AAEpD;;;;;;;;;GASG;AACH,MAAM,MAAM,sBAAsB,GAC5B,OAAO,GACP,MAAM,GACN,oBAAoB,GACpB,UAAU,GACV,CAAC,oBAAoB,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAAC,GACxD;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAAA;AAEvF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,qBAAqB,EAAE,MAAM,CAAA;IAC7B,kFAAkF;IAClF,eAAe,EAAE,MAAM,CAAA;IACvB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAA;IACvC,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;CAC/C;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,WAAW,CAAA;AAE9D;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAA;IACxD;;;OAGG;IACH,cAAc,CAAC,EAAE,yBAAyB,CAAA;IAC1C,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;IAC9C,mCAAmC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAA;IAC3C,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB"}
1
+ {"version":3,"file":"ApiExposureConfig.d.ts","sourceRoot":"","sources":["../../../../src/actions/package/compile/ApiExposureConfig.ts"],"names":[],"mappings":"AAAA,KAAK,oBAAoB,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAA;AAEpD;;;;;;;;;GASG;AACH,MAAM,MAAM,sBAAsB,GAC5B,OAAO,GACP,MAAM,GACN,oBAAoB,GACpB,UAAU,GACV,CAAC,oBAAoB,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAAC,GACxD;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAAA;AAEvF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,qBAAqB,EAAE,MAAM,CAAA;IAC7B,kFAAkF;IAClF,eAAe,EAAE,MAAM,CAAA;IACvB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAA;IACvC,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;CAC/C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,cAAc,GAAG,WAAW,CAAA;AAE/E;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAA;IACxD;;;OAGG;IACH,cAAc,CAAC,EAAE,yBAAyB,CAAA;IAC1C,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;IAC9C,mCAAmC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAA;IAC3C,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB"}
@@ -14503,12 +14503,14 @@ function syncMonolithLayout(packageDir, config, options = {}) {
14503
14503
  const problems = [];
14504
14504
  const writeOrCheck = (filePath, content) => {
14505
14505
  const normalized = content.endsWith("\n") ? content : `${content}\n`;
14506
+ const exists = fs.existsSync(filePath);
14507
+ if (exists && fs.readFileSync(filePath, "utf8") === normalized) return;
14506
14508
  if (check) {
14507
- if (!fs.existsSync(filePath)) {
14509
+ if (!exists) {
14508
14510
  problems.push(`missing generated file: ${PATH.relative(packageDir, filePath)}`);
14509
14511
  return;
14510
14512
  }
14511
- if (fs.readFileSync(filePath, "utf8") !== normalized) problems.push(`out of date: ${PATH.relative(packageDir, filePath)}`);
14513
+ problems.push(`out of date: ${PATH.relative(packageDir, filePath)}`);
14512
14514
  return;
14513
14515
  }
14514
14516
  fs.mkdirSync(PATH.dirname(filePath), { recursive: true });