Skip to content

Commit d026a54

Browse files
committed
fix(scanner): rename plist parser module to avoid CI cycle false positive
Madge treated the local plist parser module name as a circular dependency during the Netlify build lane after the TypeScript refactor. Rename the local module to plist-parser so the internal file no longer collides with the external plist package name, while keeping parser behavior unchanged. Constraint: Must restore the deploy gate without changing parser semantics Rejected: Disable the circular-dependency check | would hide a useful guard instead of fixing the naming conflict that triggered it Confidence: high Scope-risk: narrow Reversibility: clean Directive: Avoid naming local modules after direct external package imports when the repo relies on static dependency graph tooling Tested: pnpm run typecheck; pnpm exec vitest run test/scanner/plist.test.ts test/scanner/file-api.test.ts test/scanner/client.test.ts test/prebuild/load-sitemap-endpoints.test.ts; pnpm run test-prebuild Not-tested: Full production deploy completion before push
1 parent f1cb66c commit d026a54

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

helpers/scanner/scan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as FileApi from './file-api'
66
import type { NodeFile } from './file-api'
77
import { isNonEmptyString, isString } from '../check-types.js'
88
import { extractMachoMeta } from './parsers/macho.js'
9-
import { parsePlistBuffer } from './parsers/plist'
9+
import { parsePlistBuffer } from './parsers/plist-parser'
1010

1111
zip.configure({
1212
useWebWorkers: !import.meta.env.SSR

test/scanner/plist.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import {
1111
parseFileSync,
1212
parsePlistBuffer
13-
} from '~/helpers/scanner/parsers/plist'
13+
} from '~/helpers/scanner/parsers/plist-parser'
1414

1515
type ParsedPlist = Record<string, string>
1616

0 commit comments

Comments
 (0)