## Steps to reproduce Full reduced test case: https://github.com/OliverJAsh/copy-with-imports-base-url-test Enable `"copy-with-imports.path-relative-from-tsconfig": true`. `tsconfig.json`: ```json { "compilerOptions": { "baseUrl": "app" } } ``` `app/helpers/foo.ts`: ```ts export const foo = 1; ``` `app/helpers/bar.ts`: ```ts import { foo } from "./foo"; // 1. copy this console.log(foo) ``` `app/helpers/baz.ts`: ```ts // 2. paste here ``` ## Actual `app/helpers/baz.ts`: ```ts import {foo} from 'app/helpers/foo'; // 2. paste here console.log(foo) ``` ## Expected `app/helpers/baz.ts`: ```ts import {foo} from 'helpers/foo'; // 2. paste here console.log(foo) ``` https://user-images.githubusercontent.com/921609/144834479-a1263577-e4f9-4792-9074-7c10207edb60.mov --- I think we need to account for `config.compilerOptions.baseUrl` here: https://github.com/stringham/copy-with-imports/blob/521f6f25ca7eaedfe7cbc9e08249fcfa12ae572e/src/pathresolver.ts#L46
Steps to reproduce
Full reduced test case: https://github.com/OliverJAsh/copy-with-imports-base-url-test
Enable
"copy-with-imports.path-relative-from-tsconfig": true.tsconfig.json:{ "compilerOptions": { "baseUrl": "app" } }app/helpers/foo.ts:app/helpers/bar.ts:app/helpers/baz.ts:// 2. paste hereActual
app/helpers/baz.ts:Expected
app/helpers/baz.ts:Screen.Recording.2021-12-06.at.10.57.02.mov
I think we need to account for
config.compilerOptions.baseUrlhere:copy-with-imports/src/pathresolver.ts
Line 46 in 521f6f2