File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ import type { Repository } from "./useRepo";
55function isLocalDependency ( version : string ) : boolean {
66 return version . startsWith ( "link:" ) || version . startsWith ( "file:" ) ;
77}
8+ function isAliasDependency ( version : string ) : boolean {
9+ return version . startsWith ( "npm:" ) ;
10+ }
811
912export function useDependencyTable ( ) {
1013 const { repositories } = useRepositoriesStore ( ) ;
@@ -18,7 +21,7 @@ export function useDependencyTable() {
1821 for ( const repo of repositoriesWithDependencies . value ) {
1922 for ( const key in repo . dependencies ) {
2023 const version = repo . dependencies [ key ] ;
21- if ( version && ! isLocalDependency ( version ) ) { set . add ( key ) ; }
24+ if ( version && ! isLocalDependency ( version ) && ! isAliasDependency ( version ) ) { set . add ( key ) ; }
2225 }
2326 }
2427 return [ ...set ] . sort ( ( a , b ) => a . localeCompare ( b ) ) ;
You can’t perform that action at this time.
0 commit comments