Starter: inherit the reference doctor silences and packageManager; cookieCrawl active in the reference

Same reference/package.json, reference/ipal-doctor.json and ci.yml env lines as claude/ipal-doctor-build,
so the two branches merge cleanly there. ipal-doctor.json of a new site keeps i18n-literals (the /design
styleguide) and audit:collections-present only while posts/caseStudies are in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 16:11:33 +01:00
co-authored by Claude Opus 5.5
parent 0dffb85ec1
commit 01afa6fab8
10 changed files with 59 additions and 12 deletions
+5
View File
@@ -221,6 +221,9 @@ describe.runIf(existsSync(path.join(reference, 'starter.manifest.json')))('start
expect(files['AGENTS.md']).toMatch(/## Project decisions\n- Languages: pl, en/)
expect(files['src/seed/base.ts']).toContain("email: '[email protected]'")
expect(files['pnpm-lock.yaml']).not.toContain('@intecion/ipal-kit')
const doctor = JSON.parse(files['ipal-doctor.json'] ?? '') as { rules: Record<string, unknown> }
expect(Object.keys(doctor.rules).sort()).toEqual(['audit:collections-present', 'csp', 'i18n-literals'])
expect((JSON.parse(files['package.json'] ?? '') as { packageManager?: string }).packageManager).toMatch(/^pnpm@\d/)
})
it('drops what the owner turned off', () => {
@@ -239,5 +242,7 @@ describe.runIf(existsSync(path.join(reference, 'starter.manifest.json')))('start
expect(files['src/instrumentation.ts']).toContain('storage: false,')
expect(files['src/lib/content.ts']).not.toMatch(/buildLocalBusinessJsonLd|getPayload/)
expect(files['AGENTS.md']).toContain('ipal-audit-skip: twofactor, r2')
expect(Object.keys((JSON.parse(files['ipal-doctor.json'] ?? '') as { rules: object }).rules).sort()).toEqual(['2fa', 'csp', 'i18n-literals'])
expect(files['src/instrumentation.ts']).not.toContain('cookieCrawl')
})
})