Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: empty chunks #566

Merged
merged 3 commits into from
Jan 21, 2025
Merged

fix: empty chunks #566

merged 3 commits into from
Jan 21, 2025

Conversation

userquin
Copy link
Contributor

@userquin userquin commented Jan 10, 2025

This PR also includes:

  • remove types from all subpackage exports (there is no need)
  • remove import/require from ./types subpackage export: should export only types, there is no implementation
  • include data-loaders/* in typesVersions: node10 types broken
  • remove client from typesVersions.

I'm going to check on my local Windows laptop the error with long paths in Nuxt.

We split tsup options to generate only dts for src/types.ts (thx for the help @brc-dd)

import { defineConfig, type Options } from 'tsup'

export const commonOptions = {
clean: true,
clean: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can probably be removed, it's false by default 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok (I added it explicitly to avoid reverting the flag)

Copy link
Owner

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@posva posva merged commit f71c2c5 into posva:main Jan 21, 2025
2 checks passed
@posva
Copy link
Owner

posva commented Jan 21, 2025

This broke the docs generation pnpm run docs:build after pnpm build so I had to revert it. If you manage to have both working we can merge it. It's okay to drop node10, it's not supported, only moduleResolution: "bundler" is supported

posva added a commit that referenced this pull request Jan 21, 2025
@brc-dd
Copy link
Contributor

brc-dd commented Jan 21, 2025

different dts chunks are being generated because of splitting types entry in tsup. I think it's fine to leave 0 byte dist/types.js because it cannot be imported anyway.

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.

3 participants