Home > @wixc3/fs-utils > getBareImportSpecifier
Creates bare import specifier for an absolute import path, stripping extension from JS/TS files.
Signature:
export declare function getBareImportSpecifier(absoluteImportPath: string, packageJsonPath: string, packageJsonName: string): string;
Parameter | Type | Description |
---|---|---|
absoluteImportPath | string | an absolute import path |
packageJsonPath | string | package.json file path |
packageJsonName | string | package name |
Returns:
string