A package should not import components of itself using a globally-qualified name; it should use relative imports instead.
Bad:
import foo from "this-package/foo.d.ts";
Good:
import foo from "./foo.d.ts";
Bad:
import myself from "this-package";
Good:
import myself from ".";