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 · 4 comments
Open

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

MegaMaddin opened this issue Dec 2, 2024 · 4 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
@tnolet
Copy link
Member

tnolet commented Feb 18, 2025

@MegaMaddin this would require our backend runners to also support bun and Deno.

@MegaMaddin
Copy link
Author

@MegaMaddin this would require our backend runners to also support bun and Deno.

Why is that? I'm currently using Deno for most of my CLI deployments and it's working fine/ok-ish. This ticket is more about, detection and support of the runtime and calling out to e.g. Deno or bun for transpilation instead of using ts-node/tsc.

@tnolet
Copy link
Member

tnolet commented Feb 19, 2025

@MegaMaddin this would require our backend runners to also support bun and Deno.

Why is that? I'm currently using Deno for most of my CLI deployments and it's working fine/ok-ish. This ticket is more about, detection and support of the runtime and calling out to e.g. Deno or bun for transpilation instead of using ts-node/tsc.

Aha, now I understand. Just for working locally. I've not seen this request from users, also not sure how much we would need to change and test to assure compatibility for this.

@MegaMaddin
Copy link
Author

MegaMaddin commented Feb 19, 2025

Just for working locally

Exactly, I guess it's mainly about detection and calling out to the runtime for transpiling code (if possible).

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

2 participants