how to mark project as javascript if it also contains some java sources

Answered

hi,

i have a project that contains some java sources in a directory `test` but also typescript files in `src`. In the root directory, it contains all other files necessary for a node project (package.json, etc..). I want this project to be a javascript/typescript project, but intellij keeps seeing it as a java project. how can I tell intellij that this is a javascript/typescript project?

during the import, I get presented with the option to "import modules", but only the java sources are shown. because I don't want to import them, I deselect both of them. once the project is opened, it is completely useless. in the project navigator on the right hand side, I only see the files in the root directory (e.g. the src directory is not even shown). only when I navigate to "Project Files", I see the other files, but I'm missing all features I'd usually get when working with regular javascript/typescript projects.

I'm using IntelliJ 2021.2.3 Ultimate.

0
1 comment

Is it possible to share a sample project which should be configured this way?

0

Please sign in to leave a comment.