@@ -9,7 +9,7 @@ use serde_json::{json, Value};
9
9
use crate :: io:: {
10
10
get_internal_package_manifest_files, read_internal_package_manifests, read_lerna_manifest,
11
11
read_tsconfig, write_project_references, write_tsconfig, PackageManifest ,
12
- TypeScriptProjectReference , TypeScriptProjectReferences ,
12
+ TypeScriptParentProjectReferences , TypeScriptProjectReference ,
13
13
} ;
14
14
15
15
// Returns a path to an internal package relative to the monorepo root.
@@ -47,12 +47,12 @@ fn key_children_by_parent(
47
47
accumulator
48
48
}
49
49
50
- // Serialize the TypeScript project references
51
- fn create_project_references ( children : & mut Vec < String > ) -> TypeScriptProjectReferences {
50
+ // Serialize the TypeScript project references.
51
+ fn create_project_references ( children : & mut Vec < String > ) -> TypeScriptParentProjectReferences {
52
52
// Sort the TypeScript project references for deterministic file contents.
53
53
// This minimizes diffs since the tsconfig.json files are stored in version control.
54
54
children. sort_unstable ( ) ;
55
- TypeScriptProjectReferences {
55
+ TypeScriptParentProjectReferences {
56
56
files : [ ] . to_vec ( ) ,
57
57
references : children
58
58
. iter ( )
@@ -78,6 +78,7 @@ fn link_children_packages(
78
78
. fold ( HashMap :: new ( ) , key_children_by_parent)
79
79
. iter_mut ( )
80
80
. map ( |( directory, children) | {
81
+ // TODO: implement --check
81
82
write_project_references (
82
83
opts. root . join ( directory) . join ( "tsconfig.json" ) ,
83
84
& create_project_references ( children) ,
0 commit comments