@@ -33,7 +33,19 @@ function createFixtureRepo(): string {
3333 } )
3434 writeJson ( join ( rootDir , 'cli' , 'package.json' ) , {
3535 name : '@truenine/memory-sync-cli' ,
36- version : initialVersion
36+ version : initialVersion ,
37+ optionalDependencies : {
38+ '@truenine/memory-sync-cli-darwin-arm64' : initialVersion ,
39+ '@truenine/memory-sync-cli-linux-x64-gnu' : initialVersion
40+ }
41+ } )
42+ writeJson ( join ( rootDir , 'mcp' , 'package.json' ) , {
43+ name : '@truenine/memory-sync-mcp' ,
44+ version : initialVersion ,
45+ optionalDependencies : {
46+ '@truenine/memory-sync-mcp-darwin-arm64' : initialVersion ,
47+ '@truenine/memory-sync-mcp-linux-x64-gnu' : initialVersion
48+ }
3749 } )
3850 writeJson ( join ( rootDir , 'gui' , 'package.json' ) , {
3951 name : '@truenine/memory-sync-gui' ,
@@ -121,7 +133,20 @@ function createFixtureRepo(): string {
121133
122134function expectSharedVersionSurfaces ( rootDir : string , nextVersion : string ) : void {
123135 expect ( JSON . parse ( readFileSync ( join ( rootDir , 'package.json' ) , 'utf-8' ) ) as { version : string } ) . toMatchObject ( { version : nextVersion } )
124- expect ( JSON . parse ( readFileSync ( join ( rootDir , 'cli' , 'package.json' ) , 'utf-8' ) ) as { version : string } ) . toMatchObject ( { version : nextVersion } )
136+ expect ( JSON . parse ( readFileSync ( join ( rootDir , 'cli' , 'package.json' ) , 'utf-8' ) ) as { version : string , optionalDependencies : Record < string , string > } ) . toMatchObject ( {
137+ version : nextVersion ,
138+ optionalDependencies : {
139+ '@truenine/memory-sync-cli-darwin-arm64' : nextVersion ,
140+ '@truenine/memory-sync-cli-linux-x64-gnu' : nextVersion
141+ }
142+ } )
143+ expect ( JSON . parse ( readFileSync ( join ( rootDir , 'mcp' , 'package.json' ) , 'utf-8' ) ) as { version : string , optionalDependencies : Record < string , string > } ) . toMatchObject ( {
144+ version : nextVersion ,
145+ optionalDependencies : {
146+ '@truenine/memory-sync-mcp-darwin-arm64' : nextVersion ,
147+ '@truenine/memory-sync-mcp-linux-x64-gnu' : nextVersion
148+ }
149+ } )
125150 expect ( JSON . parse ( readFileSync ( join ( rootDir , 'gui' , 'package.json' ) , 'utf-8' ) ) as { version : string } ) . toMatchObject ( { version : nextVersion } )
126151 expect ( JSON . parse ( readFileSync ( join ( rootDir , 'doc' , 'package.json' ) , 'utf-8' ) ) as { version : string } ) . toMatchObject ( { version : nextVersion } )
127152 expect ( JSON . parse ( readFileSync ( join ( rootDir , 'cli' , 'npm' , 'darwin-arm64' , 'package.json' ) , 'utf-8' ) ) as { version : string } ) . toMatchObject ( { version : nextVersion } )
@@ -171,6 +196,7 @@ describe('sync-versions hook', () => {
171196 'gui/package.json' ,
172197 'gui/src-tauri/Cargo.toml' ,
173198 'gui/src-tauri/tauri.conf.json' ,
199+ 'mcp/package.json' ,
174200 'package.json'
175201 ] ) )
176202 } )
@@ -202,6 +228,7 @@ describe('sync-versions hook', () => {
202228 'gui/package.json' ,
203229 'gui/src-tauri/Cargo.toml' ,
204230 'gui/src-tauri/tauri.conf.json' ,
231+ 'mcp/package.json' ,
205232 'package.json'
206233 ] ) )
207234 } )
0 commit comments