copy-with-imports
copy-with-imports copied to clipboard
TS <--> JS imports resolution
Hi, thank you for your hard work and a cool extension. I saw in the code you have a check that both files should be the same extension type. But I have a huge legacy project that supports js/ts files and files there share the same import names. (so we're safe to copy those imports)
Is it possible to add a property to the extension that will allow us get imports between ts and js? I guess we just need to pass the property and skip that condition? https://github.com/stringham/copy-with-imports/blob/4463e9c668b6b0a73ff03eb7c8768e5b9d3a6bdf/src/extension.ts#L15 Thank you.