Files
zeekayandHanzo Dev c9503722ff @hanzo/teams builds again, declarations and all
`pnpm --filter @hanzo/teams build` failed at tsup's dts step with TS5101,
the `baseUrl` tsup 8.5.1 hands TypeScript 6, which b522d36d fixed in
cards. dist/ got its JavaScript and no index.d.ts, though "types" points
there. tsup now bundles the JavaScript and `tsc -p tsconfig.build.json`
writes the declarations, as in cards.

That tsc run, like `pnpm typecheck`, then stopped on TS1479 at the
@hanzo/iam import. teams was checked as CommonJS under node16, and
@hanzo/iam gives its require condition the same ESM declaration file as
import. The code is fine: tsup bundles it, and the CommonJS output's
require('@hanzo/iam') loads the package's dist/index.cjs. teams now
resolves modules as a bundler, which is how its source is compiled, as
the other bundled packages here do.

The build writes dist/index.d.ts and one declaration per module, the
typecheck passes, and the 69 tests pass.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-19 08:59:40 -07:00

23 lines
567 B
JSON

{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"lib": ["ES2020"],
"moduleResolution": "bundler",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true,
"declaration": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": ".",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"types": ["node"]
},
"include": ["src/**/*", "test/**/*"],
"exclude": ["node_modules", "dist"]
}