mirror of
https://github.com/hanzoai/extension.git
synced 2026-11-01 18:02:17 +00:00
`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]>
10 lines
173 B
JSON
10 lines
173 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"rootDir": "src",
|
|
"emitDeclarationOnly": true,
|
|
"declarationMap": false
|
|
},
|
|
"include": ["src/**/*"]
|
|
}
|