// // Copyright 2024 DXOS.org // export const getRelativeFilename = (filename: string) => { // TODO(burdon): Hack uses "packages" as an anchor (pre-parse NX?) // Including `packages/` part of the path so that excluded paths (e.g. from dist) are clickable in vscode. const match = filename.match(/.+\/(packages\/.+\/.+)/); if (match) { const [, filePath] = match; return filePath; } return filename; };