1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-16 11:14:26 +07:00
verdaccio-ui/src/pages/Version/get-route-package-name.ts
Priscila Oliveira f5c77ff43c fix: version Page - Replaces class by func. (#171)
* refactor: updated version page

* refactor: rollback context

* fix: added version provider
2019-10-17 07:36:41 +02:00

10 lines
198 B
TypeScript

function getRouterPackageName(packageName: string, scope?: string): string {
if (scope) {
return `@${scope}/${packageName}`;
}
return packageName;
}
export default getRouterPackageName;