From 84eb2e6c88ef4d98316673ad93a624590a77b336 Mon Sep 17 00:00:00 2001 From: PerfectPan <24316656+PerfectPan@users.noreply.github.com> Date: Wed, 18 Nov 2026 00:49:25 +0800 Subject: [PATCH] fix: drop the premature duplicates gate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script added in #311 uses the lint-config gate config whose threshold is 0 — jscpd fails on any duplication, so it can never pass before the dedup pass the issue defers the gate to. Keep duplicates:audit. --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index aa74059f..950a09ed 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "changeset": "changeset", "check": "pnpm run format:check && pnpm run build && pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run check:package", "check:package": "pnpm -r run check:package", - "duplicates": "jscpd --config node_modules/@perfectpan/lint-config/jscpd.json packages apps infra scripts tests --ignore '**/node_modules/**,**/dist/**,**/coverage/**,**/.vite/**,**/.source/**,**/.tanstack/**,**/routeTree.gen.ts,**/*.json,**/*.test.ts,**/*.test.tsx,**/test/support/**,**/test/fixtures/**' --format 'typescript,tsx'", "duplicates:audit": "jscpd --config node_modules/@perfectpan/lint-config/jscpd-audit.json packages apps infra scripts tests --absolute --output tmp/duplicates-audit --ignore '**/node_modules/**,**/dist/**,**/coverage/**,**/.vite/**,**/.source/**,**/.tanstack/**,**/routeTree.gen.ts,**/*.json' --format 'typescript,tsx'", "format": "pnpm -r run format", "format:check": "pnpm -r run format:check",