Skip to content

Commit 21b0ed5

Browse files
committed
Update update-versions.js
1 parent fd83f11 commit 21b0ed5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/update-versions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (!version) {
1414
console.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');
1818
const corePackage = JSON.parse(fs.readFileSync(corePath, 'utf8'));
1919
corePackage.version = version;
2020

@@ -32,14 +32,14 @@ fs.writeFileSync(corePath, JSON.stringify(corePackage, null, 2) + '\n');
3232
console.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');
3636
const tsPackage = JSON.parse(fs.readFileSync(tsPath, 'utf8'));
3737
tsPackage.version = version;
3838
fs.writeFileSync(tsPath, JSON.stringify(tsPackage, null, 2) + '\n');
3939
console.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');
4343
let pyContent = fs.readFileSync(pyPath, 'utf8');
4444
pyContent = pyContent.replace(/^version = "[^"]*"/m, `version = "${version}"`);
4545
fs.writeFileSync(pyPath, pyContent);

0 commit comments

Comments
 (0)