How to configure tsconfig.json to output files from multiple source folders to single flat outDir?

后端 未结 3 763
青春惊慌失措
青春惊慌失措 2021-01-15 11:20

I have multiple typescript projects (e.g. client and server), which share some common functionality (located in a common fold

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 12:13

    As of now, you can't.

    I am in a situation similar to yours, I have looked around but it seems like there is no way to change this behaviour with TypeScipt configuration.

    The best you can do is use something else (a Grunt task, a shell script, ...) for moving the js files and deleting the generated folders, after every build.

提交回复
热议问题