Files
ui/pkg/event/tsconfig.json
zeekayandHanzo Dev 57f9435929 Keep every package in one directory
The workspace declared pkg/* and pkgs/* both, so one repo had two names
for one concept and a package's home was a coin toss. The shared build
tooling already lived in pkg/ui/scripts and pkgs reached back into it
two levels up; now it is a sibling. hanzo.yml gates on pkg/ui, so the
published library stays where CI already looks and the rest joins it.

The publish glob follows: one root, one pattern, nothing invisible to it.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-08 23:50:28 -07:00

52 lines
2.2 KiB
JSON

{
"compilerOptions": {
// No `ignoreDeprecations` here, and it must stay that way while this package
// builds on TypeScript 5.
//
// tsup's declaration worker injects `baseUrl: compilerOptions.baseUrl || "."`
// (tsup/dist/rollup.js) whether or not this file sets one, so the deprecation
// cannot be avoided by not writing it. The accepted value of the escape hatch
// is version-specific and the two are mutually exclusive — measured, all six
// cells, `tsup` in pkg/event:
//
// TS 5.9.3 (declared here) TS 6.0.3 (repo root)
// absent exit 0, 3 .d.ts exit 1, TS5101
// "5.0" exit 0, 3 .d.ts exit 1, TS5101
// "6.0" exit 1, TS5103 exit 0, 3 .d.ts
//
// devDependencies pin `typescript: ^5.9.3` (<6), and publish.yml builds via
// `pnpm --filter @hanzo/event... build`, which resolves THIS package's
// TypeScript — so CI is always the left column and "6.0" fails the release
// outright. "5.0" is not a compromise: it is byte-identical to absent under
// 5.9.3 and still TS5101s under 6. Absent is therefore the only correct
// value, and the minimal one.
//
// Every failing cell exits 1, so this can never publish a typeless tarball
// by accident; publish.yml additionally asserts the `types` entrypoint
// exists before it ships. Revisit only together with the version pin above.
"target": "ES2020",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"module": "ESNext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": false,
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"allowJs": false,
"types": ["node"]
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.*", "**/*.spec.*"]
}