We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4901952 + 9aa3d07 commit 0c1f1f7Copy full SHA for 0c1f1f7
scripts/publish-npm.js
@@ -89,7 +89,7 @@ const shortCommit = currentCommit.slice(0, 9);
89
90
// [macOS] Function to get our version from package.json instead of the CircleCI build tag.
91
function getPkgJsonVersion() {
92
- const pkgJsonPath = path.resolve(__dirname, '../package.json');
+ const pkgJsonPath = path.resolve(RN_PACKAGE_DIR, 'package.json');
93
const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf8'));
94
const pkgJsonVersion = pkgJson.version;
95
return pkgJsonVersion;
0 commit comments