@@ -9,7 +9,7 @@ use turbopath::{AbsoluteSystemPath, AnchoredSystemPathBuf};
9
9
use turborepo_repository:: {
10
10
change_mapper:: { ChangeMapper , PackageChanges } ,
11
11
inference:: RepoState as WorkspaceState ,
12
- package_graph:: { PackageGraph , PackageNode , WorkspaceName , WorkspacePackage , ROOT_PKG_NAME } ,
12
+ package_graph:: { PackageGraph , PackageName , PackageNode , WorkspacePackage , ROOT_PKG_NAME } ,
13
13
} ;
14
14
mod internal;
15
15
@@ -72,7 +72,7 @@ impl Package {
72
72
graph : & PackageGraph ,
73
73
workspace_path : & AbsoluteSystemPath ,
74
74
) -> Vec < Package > {
75
- let node = PackageNode :: Workspace ( WorkspaceName :: Other ( self . name . clone ( ) ) ) ;
75
+ let node = PackageNode :: Workspace ( PackageName :: Other ( self . name . clone ( ) ) ) ;
76
76
let ancestors = match graph. immediate_ancestors ( & node) {
77
77
Some ( ancestors) => ancestors,
78
78
None => return vec ! [ ] ,
@@ -178,8 +178,8 @@ impl Workspace {
178
178
let mut serializable_packages: Vec < Package > = packages
179
179
. into_iter ( )
180
180
. filter ( |p| match & p. name {
181
- WorkspaceName :: Root => false ,
182
- WorkspaceName :: Other ( name) => name != ROOT_PKG_NAME ,
181
+ PackageName :: Root => false ,
182
+ PackageName :: Other ( name) => name != ROOT_PKG_NAME ,
183
183
} )
184
184
. map ( |p| {
185
185
let package_path = workspace_root. resolve ( & p. path ) ;
0 commit comments