You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: remove dead #* path aliases and redundant /index exports
The #constants/#env/#lib/#packages/#types/#utils aliases were defined
in tsconfig.external-aliases.json and wired through esbuild, vitest,
and a dedicated fix script — but zero src/ files actually used them.
Dead plumbing that added indirection without saving keystrokes.
Also drop duplicate `./themes/index` and `./links/index` exports
(identical targets to `./themes` and `./links`). Update the
generator to stop emitting `dir/index` subpaths for index files.
Copy file name to clipboardExpand all lines: CLAUDE.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,9 @@ Color the icon only, not the message. Use `yoctocolors-cjs` (not the ESM `yoctoc
143
143
144
144
Core infrastructure library for Socket.dev security tools.
145
145
146
-
**Path aliases** (from `.config/tsconfig.external-aliases.json`): `#constants/*`, `#env/*`, `#lib/*`, `#packages/*`, `#types`, `#utils/*` — all map to `src/` subdirectories. Always use aliases for internal imports (never relative paths).
146
+
**Internal imports**: Use relative paths (e.g., `'../constants/packages'`). Path aliases are intentionally avoided — they add indirection without saving keystrokes and mask structural coupling.
147
+
148
+
**Vendored externals**: `cacache`, `make-fetch-happen`, `fast-sort`, `pacote`, `adm-zip`, `tar-fs`, `picomatch` are vendored in `src/external/` and remapped via `tsconfig.json``paths`. Always import these by their bare package name; the tsconfig resolves them to the vendored copy.
Blank lines between groups, alphabetical within groups.
@@ -237,7 +239,7 @@ Custom optimized pipeline in `.github/workflows/ci.yml`: separate lint job (runs
237
239
238
240
### Environment Variables
239
241
240
-
Access via typed getter functions in `src/env/`. Each module exports a pure getter. Test rewiring via `#env/rewire` (`setEnv`, `clearEnv`, `resetEnv`) without modifying `process.env`.
242
+
Access via typed getter functions in `src/env/`. Each module exports a pure getter. Test rewiring via `src/env/rewire.ts` (`setEnv`, `clearEnv`, `resetEnv`) without modifying `process.env`.
0 commit comments