bluelovers / idea-run-typescript

IntelliJ IDEA (and WebStorm...) plugin to support 'TypeScript' as a run configuration
https://plugins.jetbrains.com/plugin/10841-run-configuration-for-typescript
75 stars 14 forks source link

Option to specify default TypeScript Node package #45

Closed jadenv closed 3 months ago

jadenv commented 1 year ago

tsx, esno. ts-node, and esm-ts-node are all supported TypeScript Node packages.

However, there is no way to specify a default if your project has multiple installed that can be discovered.

Editing the Run/Debug Configuration Templates and setting a different TypeScript Node packages does not seem to have any effect.

It is tedious when right clicking a file and creating a new config to have to immediately edit it to run with the different package.

Lordfirespeed commented 1 year ago

I'm working on this issue, but I'm afraid I've made extensive changes to the project (fully rewritten), so not sure if my changes will be merge-friendly. Take a look: https://github.com/lordfirespeed/idea-run-typescript

Not all features have been re-implemented yet.

dangnhdev commented 1 year ago

Is there any way I can do this while waiting for the new project to be released? For example modify plugin code and reinstall it manually?

Lordfirespeed commented 1 year ago

I released my own version of the plugin, but it isn't in a great state: https://plugins.jetbrains.com/plugin/22824-run-configuration-for-typescript

There are a few issues I need to resolve but it does work when the execute package is selected manually. If you have issues with it, open an issue or discussion on the repo and I'll do my best to help you out.

jadenv commented 3 months ago

Native support was added to directly run and debug TypeScript files, so this will no longer be necessary 😊

https://www.jetbrains.com/phpstorm/whatsnew/#frontend

bluelovers commented 3 months ago

https://github.com/bluelovers/idea-run-typescript/issues/48