Skip to content

Commit 9aa3d07

Browse files
author
Adam Gleitman
committed
Fix one more package.json path
1 parent 4901952 commit 9aa3d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/publish-npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const shortCommit = currentCommit.slice(0, 9);
8989

9090
// [macOS] Function to get our version from package.json instead of the CircleCI build tag.
9191
function getPkgJsonVersion() {
92-
const pkgJsonPath = path.resolve(__dirname, '../package.json');
92+
const pkgJsonPath = path.resolve(RN_PACKAGE_DIR, 'package.json');
9393
const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf8'));
9494
const pkgJsonVersion = pkgJson.version;
9595
return pkgJsonVersion;

0 commit comments

Comments
 (0)