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: Fix esm, migrate to tsup #10

Merged
merged 1 commit into from
Sep 6, 2023
Merged

fix: Fix esm, migrate to tsup #10

merged 1 commit into from
Sep 6, 2023

Conversation

SevInf
Copy link
Member

@SevInf SevInf commented Sep 5, 2023

Fixes ESM build:

  • ensures that import for @prisma/client/extension has .js extension
    in the source file.
  • removes debug: in plays very badly with ESM/non-node environments.
    If we'll need logging library in the future, we should pick something
    more ESM and VanillaJS friendly.
  • Adds test to ensure both CJS and ESM can be loaded without errors.

Additionally, remvoes a whole bunch of custom scripts and config files
for building the module in favor of tsup.

Close #9

Fixes ESM build:
- ensures that import for `@prisma/client/extension` has `.js` extension
in the source file.
- removes `debug`: in plays very badly with ESM/non-node environments.
  If we'll need logging library in the future, we should pick something
  more ESM and VanillaJS friendly.
- Adds test to ensure both CJS and ESM can be loaded without errors.

Additionally, remvoes a whole bunch of custom scripts and config files
for building the module in favor of `tsup`.

Close #9
Copy link
Contributor

@Jolg42 Jolg42 left a comment

Choose a reason for hiding this comment

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

@SevInf SevInf merged commit 07d99ad into main Sep 6, 2023
1 check passed
@SevInf SevInf deleted the fix/esm-build branch September 6, 2023 08:39
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.

support esm
2 participants