Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

utils.ts

6 lines146 Bytes

1export function getPackageDir(packageName: string) {
2 return packageName
3 .split('/')
4 .filter((d) => !d.startsWith('@'))
5 .join('/')
6}