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

feat: add support for alternative JS runtimes like bun or Deno #989

Open
MegaMaddin opened this issue Dec 2, 2024 · 0 comments
Open

feat: add support for alternative JS runtimes like bun or Deno #989

MegaMaddin opened this issue Dec 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@MegaMaddin
Copy link

MegaMaddin commented Dec 2, 2024

What problem does this feature solve?

As a customer/user of the CLI, I'd like to use different JS runtimes other than node. There are currently two alternative JS runtimes on the rise:

It would be nice to get end-to-end support for them.

How would you implement this feature?

I'm currently running the Checkly CLI under Deno 2 and it works. Although the end-to-end experience isn't en point yet, since the CLI is not aware of the runtime.

So for some stuff you need to fiddle around a bit to get it running:

  • imports in Deno are using the full name incl. suffix my/file/name.ts which fails when transpiling this via TSC on the deploy stage
  • Type resolution not always works and requires "manual" imports
  • When transpiling code, the CLI falls back to TSC instead of the runtime
@MegaMaddin MegaMaddin added the enhancement New feature or request label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant