@@ -8,11 +8,11 @@ type PackageJson = {
88 name : string ;
99 dependencies ?: Record < string , string > ;
1010 config ?: {
11- witDeps ?: witDep [ ] ;
11+ witDependencies ?: witDependency [ ] ;
1212 } ;
1313} ;
1414
15- type witDep = {
15+ type witDependency = {
1616 witPath : string ;
1717 package : string ;
1818 world : string ;
@@ -22,7 +22,7 @@ type witDep = {
2222type DependencyResult = {
2323 name : string ;
2424 config : {
25- witDeps ?: witDep [ ] ;
25+ witDependencies ?: witDependency [ ] ;
2626 } ;
2727} [ ] ;
2828
@@ -59,8 +59,8 @@ function absolutizeWitPath(
5959 depPackageJsonPath : string ,
6060 depPackageJson : PackageJson ,
6161) : void {
62- if ( depPackageJson . config ?. witDeps ) {
63- depPackageJson . config . witDeps . forEach ( witDep => {
62+ if ( depPackageJson . config ?. witDependencies ) {
63+ depPackageJson . config . witDependencies . forEach ( witDep => {
6464 if ( ! path . isAbsolute ( witDep . witPath ) ) {
6565 witDep . witPath = path . resolve ( depPackageJsonPath , witDep . witPath ) ;
6666 }
@@ -87,16 +87,16 @@ export function getPackagesWithWasiDeps(
8787 const result : DependencyResult = [ ] ;
8888
8989 if ( topLevel ) {
90- if ( packageJson . config ?. witDeps ) {
91- if ( packageJson . config . witDeps ) {
92- if ( packageJson . config . witDeps ) {
90+ if ( packageJson . config ?. witDependencies ) {
91+ if ( packageJson . config . witDependencies ) {
92+ if ( packageJson . config . witDependencies ) {
9393 absolutizeWitPath ( dir , packageJson ) ;
9494 }
9595
9696 result . push ( {
9797 name : packageJson . name ,
9898 config : {
99- witDeps : packageJson . config . witDeps ,
99+ witDependencies : packageJson . config . witDependencies ,
100100 } ,
101101 } ) ;
102102 }
@@ -117,11 +117,11 @@ export function getPackagesWithWasiDeps(
117117 absolutizeWitPath ( depPath , depPackageJson ) ;
118118
119119 // If the package has a 'knitwit' config, add it to the result
120- if ( depPackageJson . config ?. witDeps ) {
120+ if ( depPackageJson . config ?. witDependencies ) {
121121 result . push ( {
122122 name : dep ,
123123 config : {
124- witDeps : depPackageJson . config . witDeps ?? [ ] ,
124+ witDependencies : depPackageJson . config . witDependencies ?? [ ] ,
125125 } ,
126126 } ) ;
127127 }
@@ -139,8 +139,8 @@ export function processWasiDeps(wasiDeps: DependencyResult) {
139139 let targetWorlds : TargetWorld [ ] = [ ] ;
140140
141141 wasiDeps . forEach ( dep => {
142- if ( dep . config ?. witDeps ) {
143- dep . config . witDeps . forEach ( witDep => {
142+ if ( dep . config ?. witDependencies ) {
143+ dep . config . witDependencies . forEach ( witDep => {
144144 witPaths . push ( witDep . witPath ! ) ;
145145 targetWorlds . push ( {
146146 packageName : witDep . package ,
0 commit comments