Skip to content

Commit

Permalink
Copy repo-config dependencies for bumping release version
Browse files Browse the repository at this point in the history
Summary:
Changelog: [Internal[Fixed] - Revert, yarn workspaces only used in private packages. Copy dependencies over from repo-config instead

Original commit changeset: 1dd2adc6a036

Reviewed By: fkgozali

Differential Revision: D30599065

fbshipit-source-id: 0efffaaf38bc23bac339e6e1d917736243e1750e
  • Loading branch information
Luna Wei committed Sep 1, 2021
1 parent 038cdda commit 1594af1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/bump-oss-version.js
Expand Up @@ -127,10 +127,12 @@ fs.writeFileSync(
);

let packageJson = JSON.parse(cat('package.json'));
const repoConfigJson = JSON.parse(cat('repo-config/package.json'));
packageJson.version = version;
delete packageJson.workspaces;
delete packageJson.private;

// Copy dependencies over from repo-config/package.json
const repoConfigJson = JSON.parse(cat('repo-config/package.json'));
packageJson.devDependencies = {...packageJson.devDependencies, ...repoConfigJson.dependencies};
fs.writeFileSync('package.json', JSON.stringify(packageJson, null, 2), 'utf-8');

Expand Down

0 comments on commit 1594af1

Please sign in to comment.