From 5b34138db8b338d6192d17f74fa9119d0667b245 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Tue, 1 Oct 2024 17:09:57 -0700 Subject: [PATCH] build: fix relative file read during npm publish (#44088) --- script/release/bin/publish-to-npm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release/bin/publish-to-npm.ts b/script/release/bin/publish-to-npm.ts index 85a293a444..9026384cb2 100644 --- a/script/release/bin/publish-to-npm.ts +++ b/script/release/bin/publish-to-npm.ts @@ -12,7 +12,7 @@ import { getAssetContents } from '../get-asset'; import { createGitHubTokenStrategy } from '../github-token'; import { ELECTRON_ORG, ELECTRON_REPO, ElectronReleaseRepo, NIGHTLY_REPO } from '../types'; -const rootPackageJson = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../package.json'), 'utf-8')); +const rootPackageJson = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../../package.json'), 'utf-8')); if (!process.env.ELECTRON_NPM_OTP) { console.error('Please set ELECTRON_NPM_OTP');