idea-run-typescript icon indicating copy to clipboard operation
idea-run-typescript copied to clipboard

Option to specify default TypeScript Node package

Open jadenv opened this issue 2 years ago • 3 comments
trafficstars

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.

jadenv avatar Aug 22 '23 20:08 jadenv

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.

Lordfirespeed avatar Sep 27 '23 03:09 Lordfirespeed

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?

dangnhdev avatar Nov 14 '23 17:11 dangnhdev

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.

Lordfirespeed avatar Nov 14 '23 18:11 Lordfirespeed

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

jadenv avatar Aug 13 '24 14:08 jadenv

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

bluelovers avatar Aug 14 '24 09:08 bluelovers