@@ -14,7 +14,7 @@ if (!version) {
1414console . log ( `Updating all packages to version ${ version } ...` ) ;
1515
1616// Update core/package.json
17- const corePath = path . join ( __dirname , 'core' , 'package.json' ) ;
17+ const corePath = path . join ( __dirname , '..' , ' core', 'package.json' ) ;
1818const corePackage = JSON . parse ( fs . readFileSync ( corePath , 'utf8' ) ) ;
1919corePackage . version = version ;
2020
@@ -32,14 +32,14 @@ fs.writeFileSync(corePath, JSON.stringify(corePackage, null, 2) + '\n');
3232console . log ( `[OK] Updated core/package.json to ${ version } ` ) ;
3333
3434// Update sdks/typescript/package.json
35- const tsPath = path . join ( __dirname , 'sdks' , 'typescript' , 'package.json' ) ;
35+ const tsPath = path . join ( __dirname , '..' , ' sdks', 'typescript' , 'package.json' ) ;
3636const tsPackage = JSON . parse ( fs . readFileSync ( tsPath , 'utf8' ) ) ;
3737tsPackage . version = version ;
3838fs . writeFileSync ( tsPath , JSON . stringify ( tsPackage , null , 2 ) + '\n' ) ;
3939console . log ( `[OK] Updated sdks/typescript/package.json to ${ version } ` ) ;
4040
4141// Update sdks/python/pyproject.toml
42- const pyPath = path . join ( __dirname , 'sdks' , 'python' , 'pyproject.toml' ) ;
42+ const pyPath = path . join ( __dirname , '..' , ' sdks', 'python' , 'pyproject.toml' ) ;
4343let pyContent = fs . readFileSync ( pyPath , 'utf8' ) ;
4444pyContent = pyContent . replace ( / ^ v e r s i o n = " [ ^ " ] * " / m, `version = "${ version } "` ) ;
4545fs . writeFileSync ( pyPath , pyContent ) ;
0 commit comments