Skip to content

Commit 1f6728c

Browse files
committed
fix(scripts): repair clean.mts imports + drop dead minify validator
clean.mts crashed on first import (ERR_PACKAGE_PATH_NOT_EXPORTED): it pulled safeDelete from @socketsecurity/lib/fs (no such export), getDefaultLogger from @socketsecurity/lib/logger, and REPO_ROOT from a non-existent ./paths.mts. Repoint at the canonical -stable subpaths (@socketsecurity/lib-stable/fs/safe, .../logger/default) and ./fleet/paths.mts so `pnpm run clean` runs again. Delete scripts/validate-esbuild-minify.mts: an orphan from the esbuild->rolldown bundler migration. It imported a non-existent .config/esbuild.config.mts, and its catch block set exitCode=1 while main() overwrote it to 0 — so it always reported "passed" and could never catch a real minify regression. Not wired into any package.json script or CI gate; the rolldown validator supersedes it.
1 parent ed7dd2b commit 1f6728c

2 files changed

Lines changed: 4 additions & 107 deletions

File tree

scripts/clean.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @fileoverview Clean derived directories.
33
*
4-
* Routes deletion through `safeDelete` from `@socketsecurity/lib/fs`
4+
* Routes deletion through `safeDelete` from `@socketsecurity/lib-stable/fs/safe`
55
* per the fleet's "no `rm -rf` direct calls" rule (CLAUDE.md
66
* Code-style section).
77
*
@@ -11,10 +11,10 @@
1111
import { glob } from 'node:fs/promises'
1212
import path from 'node:path'
1313

14-
import { safeDelete } from '@socketsecurity/lib/fs'
15-
import { getDefaultLogger } from '@socketsecurity/lib/logger'
14+
import { safeDelete } from '@socketsecurity/lib-stable/fs/safe'
15+
import { getDefaultLogger } from '@socketsecurity/lib-stable/logger/default'
1616

17-
import { REPO_ROOT } from './paths.mts'
17+
import { REPO_ROOT } from './fleet/paths.mts'
1818

1919
const logger = getDefaultLogger()
2020

scripts/validate-esbuild-minify.mts

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)