Skip to content

Commit c20e66d

Browse files
hoxyqOlimpiaZurek
authored andcommitted
fix(ci/template): fixed unresolved variable in script
Summary: Changelog: [Internal] [Changed] - fixed unresolved variable in template initialization script Reviewed By: cipolleschi Differential Revision: D41527165 fbshipit-source-id: acdd8d4cf9fb6153022b0395d3715ca9ca6363c9
1 parent 1413b6e commit c20e66d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/template/initialize.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ function install() {
6262

6363
process.stdout.write('Starting to publish all the packages...\n');
6464
Object.entries(packages).forEach(([packageName, packageEntity]) => {
65+
const packageRelativePath = packageEntity.location;
66+
const packageAbsolutePath = `${reactNativeRootPath}/${packageRelativePath}`;
67+
6568
const packageManifest = readPackageJSON(packageAbsolutePath);
6669
if (packageManifest.private) {
6770
return;
6871
}
6972

70-
const packageRelativePath = packageEntity.location;
71-
const packageAbsolutePath = `${reactNativeRootPath}/${packageRelativePath}`;
72-
7373
execSync('npm publish --registry http://localhost:4873 --access public', {
7474
cwd: `${reactNativeRootPath}/${packageEntity.location}`,
7575
stdio: [process.stdin, process.stdout, process.stderr],

0 commit comments

Comments
 (0)