Quantcast
Channel: User user2297996 - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Can I fix TypeScript imports to use only @ns/pkg instead of @ns/pkg/subdir/xy automatically?

$
0
0

I have imports like this:

import { some } from '@namespace/pkg/some/other';

The package has proper index file now, so I want to change all imports to:

import { some } from '@namespace/pkg';

There are many imports to change. Can I automate this using VsCode or something else?


Viewing all articles
Browse latest Browse all 37

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>