Skip to content

Fix DTS build tsconfig#12

Open
xianzuyang9-blip wants to merge 1 commit into
gupta-8:mainfrom
xianzuyang9-blip:codex/fix-dts-build-tsconfig
Open

Fix DTS build tsconfig#12
xianzuyang9-blip wants to merge 1 commit into
gupta-8:mainfrom
xianzuyang9-blip:codex/fix-dts-build-tsconfig

Conversation

@xianzuyang9-blip

Copy link
Copy Markdown

Summary

  • Point tsup at the production declaration config (tsconfig.build.json).
  • Clear test-only vitest/globals types for the build config so DTS generation does not require undeclared test dependencies.

Reproduction before fix

  • npm install --ignore-scripts --no-audit --no-fund
  • npm run build

Before this patch, DTS generation failed with:

error TS2688: Cannot find type definition file for 'vitest/globals'.

Verification after fix

  • npm run build

The build now completes and emits dist/index.d.ts and dist/index.d.cts.

Related public bounty lead: charles-openclaw/charles-microbounties#32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant