Home > @wixc3/fs-utils > createImportPath
Returns relative import path if imported and target files are in the same package, otherwise returns a bare import specifier.
Signature:
export declare function createImportPath({ importedFilePath, targetFilePath, targetPackageJsonPath, fs, }: CreateImportPathArgs): string;
Parameter | Type | Description |
---|---|---|
{ importedFilePath, targetFilePath, targetPackageJsonPath, fs, } | [CreateImportPathArgs](/core3-utils/fs-utils.createimportpathargs.html) |
Returns:
string