fix: path for newly added collection & remove option for outside collections (#6331)

* fixes

* fixes

* fix
This commit is contained in:
naman-bruno
2025-12-06 18:43:53 +05:30
committed by GitHub
parent 3e5ae613f5
commit 4ffb447c53
7 changed files with 83 additions and 56 deletions

View File

@@ -163,5 +163,10 @@ const getAbsoluteFilePath = (basePath, relativePath, shouldPosixify = false) =>
return shouldPosixify ? posixify(result) : result;
};
const normalizePath = (p) => {
if (!p) return '';
return p.replace(/\\/g, '/').replace(/\/+$/, '');
};
export default brunoPath;
export { getRelativePath, getBasename, getAbsoluteFilePath };
export { getRelativePath, getBasename, getAbsoluteFilePath, normalizePath };