Skip to content

Commit cb27563

Browse files
committed
ci: another fix to release script
1 parent 2c6bd6f commit cb27563

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/kit-headless/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"update-utils-version": {
6262
"executor": "nx:run-commands",
6363
"options": {
64+
"parallel": false,
6465
"command": "pnpm update.version"
6566
}
6667
},

scripts/update-versions.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { readFile as fsReadFile, writeFile as fsWriteFile } from 'node:fs';
22

3-
import { join } from 'node:path';
3+
import { dirname, join } from 'path';
4+
import { fileURLToPath } from 'url';
45
import { promisify } from 'util';
56

67
export const readFile = /*#__PURE__*/ promisify(fsReadFile);
@@ -19,7 +20,8 @@ export async function writePackageJson(pkgJsonDir: string, pkgJson: any) {
1920
}
2021

2122
async function updateUtilsVersion() {
22-
const distPackagesDir = join('dist', 'packages');
23+
const currentDir = dirname(fileURLToPath(import.meta.url));
24+
const distPackagesDir = join(currentDir, '../', 'dist', 'packages');
2325
const utilsPkgJson = await readPackageJson(join(distPackagesDir, 'utils'));
2426
const kitHeadlessPkgJson = await readPackageJson(join(distPackagesDir, 'kit-headless'));
2527

0 commit comments

Comments
 (0)