Skip to content

Commit 2330fea

Browse files
committed
fix(scripts): repoint package paths.mts re-exports to scripts/fleet/paths.mts
The scripts/{fleet,repo} segmentation renamed repo-root scripts/paths.mts to scripts/fleet/paths.mts (git rename in the cascade commit). Three packages (boringssl-builder, dawn-builder, node-smol-builder) inherit via `export * from '../../../scripts/paths.mts'`, which now points at the deleted path — breaking any test suite or script that imports build paths through them (e.g. node-smol's smol-features-helper suite). Repoint all three re-exports to '../../../scripts/fleet/paths.mts' (exports are identical; the move was a pure rename). With this + the vitest config repoint, node-smol-builder's 4 detection/compile/ gate/features unit suites pass (33 passed, 1 skipped). Note: paths-mts-inherit-guard's findAncestorPathsMts() walks up for an ancestor 'scripts/paths.mts' and no longer finds the moved root, so it now treats these package files as exempt (fail-open). That guard's ancestor-walk should learn the scripts/fleet/ location — tracked separately for the cascade.
1 parent 6a77c39 commit 2330fea

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/boringssl-builder/scripts/paths.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Centralized path resolution for boringssl-builder.
33
*/
44

5-
export * from '../../../scripts/paths.mts'
5+
export * from '../../../scripts/fleet/paths.mts'
66

77
import path from 'node:path'
88
import process from 'node:process'

packages/dawn-builder/scripts/paths.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// Inherit canonical roots (REPO_ROOT, CONFIG_DIR, NODE_MODULES_CACHE_DIR,
1414
// etc.) from the repo-root paths module per fleet rule
1515
// `paths-mts-inherit-guard`.
16-
export * from '../../../scripts/paths.mts'
16+
export * from '../../../scripts/fleet/paths.mts'
1717

1818
import path from 'node:path'
1919
import { fileURLToPath } from 'node:url'

packages/node-smol-builder/scripts/paths.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Use getExistingPaths() to filter to only existing directories when needed.
1111
*/
1212

13-
export * from '../../../scripts/paths.mts'
13+
export * from '../../../scripts/fleet/paths.mts'
1414

1515
import { existsSync } from 'node:fs'
1616
import path from 'node:path'

0 commit comments

Comments
 (0)