Skip to content

Commit

Permalink
fix(ci/template): fixed unresolved variable in script
Browse files Browse the repository at this point in the history
Summary:
Changelog:
[Internal] [Changed] - fixed unresolved variable in template initialization script

Reviewed By: cipolleschi

Differential Revision: D41527165

fbshipit-source-id: acdd8d4cf9fb6153022b0395d3715ca9ca6363c9
  • Loading branch information
hoxyq authored and facebook-github-bot committed Nov 25, 2022
1 parent 1f8c0c8 commit e680018
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/template/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ function install() {

process.stdout.write('Starting to publish all the packages...\n');
Object.entries(packages).forEach(([packageName, packageEntity]) => {
const packageRelativePath = packageEntity.location;
const packageAbsolutePath = `${reactNativeRootPath}/${packageRelativePath}`;

const packageManifest = readPackageJSON(packageAbsolutePath);
if (packageManifest.private) {
return;
}

const packageRelativePath = packageEntity.location;
const packageAbsolutePath = `${reactNativeRootPath}/${packageRelativePath}`;

execSync('npm publish --registry http://localhost:4873 --access public', {
cwd: `${reactNativeRootPath}/${packageEntity.location}`,
stdio: [process.stdin, process.stdout, process.stderr],
Expand Down

0 comments on commit e680018

Please sign in to comment.