Skip to content

Commit 0c1f1f7

Browse files
authored
Merge pull request #1932 from amgleitman/0.72-one-more-package-json-path
Fix one more package.json path
2 parents 4901952 + 9aa3d07 commit 0c1f1f7

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)