mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 21:27:14 +01:00
`web-ui-tests` has been red since6714d13and the cause was not a stale dist/: the content is byte-identical. Every one of the 16 files differed only by a trailing newline that tsc does not emit. Where the newline came from: at03bf1edthe subproject config had no exclude, so pre-commit's end-of-file-fixer appended a newline to each generated file.eaa5683added `exclude: ^web_ui/dist/` to stop that recurring, but did not revert the newlines already committed -- leaving a dist/ that no `pnpm build` can ever reproduce, and therefore a job that could never go green. It looked fine locally because `tsc -b` is incremental: with a warm tsconfig.tsbuildinfo it skips emit entirely, so `pnpm build` was a no-op and printed no diff. CI has no cache, always emits, and always failed. Deleting tsbuildinfo reproduces the failure locally in one command. Verified: after deleting tsbuildinfo and all of dist/, a from-scratch `pnpm build` reproduces exactly what is committed here -- `git diff --exit-code -- dist` is clean, which is the assertion CI makes. pnpm lint passes and pnpm coverage is 84 tests, 100% statements/branches/functions. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG
16 lines
704 B
TypeScript
16 lines
704 B
TypeScript
/**
|
|
* Small text helpers shared by the consumers' filter layers.
|
|
*
|
|
* Hand-rolled rather than pulling in Fuse.js, matching the house posture of no
|
|
* runtime dependencies for things this small.
|
|
*/
|
|
/**
|
|
* Case-insensitive subsequence match: every character of `query` appears in
|
|
* `target`, in order, though not necessarily adjacently. An empty query matches
|
|
* everything, so callers can pass the raw search box value straight through.
|
|
*
|
|
* dufs-cloud called this `fuzzyMatch` and awesome-mcp-explorer `matchesFuzzy`;
|
|
* the implementations were identical apart from identifier names.
|
|
*/
|
|
export declare function fuzzyMatch(query: string, target: string): boolean;
|
|
//# sourceMappingURL=text.d.ts.map
|