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

Allow usage of different registers instead of ts-node as default #622

Closed
frencojobs opened this issue Jul 27, 2021 · 3 comments
Closed

Allow usage of different registers instead of ts-node as default #622

frencojobs opened this issue Jul 27, 2021 · 3 comments

Comments

@frencojobs
Copy link

frencojobs commented Jul 27, 2021

Do you want to request a feature or report a bug?

A feature.

What is the current behavior?

I found no way to use esbuild or swc registers during development. ts-node is baked in. In the worst-case scenario, I want to at least be able to use different ts-node transpilers other than TSC.

What is the expected behavior?

Users should be able to use different registers that they prefer. The oclif version is ^1.

@hmaurer
Copy link

hmaurer commented Feb 13, 2022

ts-node supports alternative transpilers, with swc baked in; it'd be nice if that could be supported by oclif: https://github.com/TypeStrong/ts-node/releases/tag/v10.0.0

@JimminiKin
Copy link

@hmaurer I think this can already be achieved by adding

	"ts-node": {
		"transpiler": "ts-node/transpilers/swc"
	}

to tsconfig.json

@mdonnalley
Copy link
Contributor

Closing this since:

  1. You don't have to use ts-node (see feat: support bun and tsx for development core#966)
  2. oclif will honor the ts-node.transpiler option if you want to set that

Feel free to open a new issue if there's something you'd like to see changed.

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

No branches or pull requests

4 participants