Skip to content

Commit be9c357

Browse files
committed
chore: add jscpd duplicate detection to check scripts
Integrate jscpd via a new 'check-duplicates' script and wire it into both 'check' and 'check:ci' so duplicate code is caught in CI.
1 parent 822a5fd commit be9c357

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly --declaration",
1717
"build:schema": "bun run scripts/build-schema.ts",
1818
"clean": "rm -rf dist",
19-
"check": "bun run lint && bun run typecheck && bun run knip && bun run sg:scan && AGENT=1 bun test --coverage",
20-
"check:ci": "bun run lint:ci && bun run typecheck && bun run knip && bun run sg:scan && AGENT=1 bun test --coverage --coverage-reporter=lcov",
19+
"check": "bun run lint && bun run typecheck && bun run knip && bun run check-duplicates && bun run sg:scan && AGENT=1 bun test --coverage",
20+
"check:ci": "bun run lint:ci && bun run typecheck && bun run knip && bun run check-duplicates && bun run sg:scan && AGENT=1 bun test --coverage --coverage-reporter=lcov",
2121
"lint": "biome check --write",
2222
"lint:ci": "biome ci .",
2323
"typecheck": "tsc --noEmit",
2424
"knip": "knip --production",
25+
"check-duplicates": "bunx jscpd src tests --exitCode 1 --reporters ai",
2526
"sg:scan": "ast-grep scan",
2627
"test": "bun test",
2728
"publish:dry-run": "bun run scripts/publish.ts --dry-run",

0 commit comments

Comments
 (0)