Closed truongnat closed 1 year ago
i found function getRelativePath
, this function return relative path, but when to
path includes @types or another folderm it still return ../..
export const getRelativePath = (
from: string | undefined,
to: string | undefined
) => {
const relativePath =
path.relative(path.dirname(from || ''), path.dirname(to || '')) || './'
return relativePath.endsWith('..') ? `${relativePath}/` : relativePath
}
@truongnat
Revised and published. Please check it.
@truongnat
Revised and published. Please check it.
OKay thakns <
Hi @activeguild,
Have good day <3,
I meet issue when using this library, i want custom outputFilePath from './src/style.d.ts' to './src/@types/style.d.ts'.
Because i move all file .d.ts to folder src/@types.
but custom above will error import when generate.
i want change to:
Thanks <3