Skip to content

Commit

Permalink
Keep repo-config workspace in bump-oss-version
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal][Fixed] - Keep repo-config as a workspace for bumping oss release version. Fixes CI jobs not having tooling dependencies

Reviewed By: yungsters

Differential Revision: D30595543

fbshipit-source-id: 1dd2adc6a0363202efb5314b7e8eb44618b50327
  • Loading branch information
Luna Wei authored and facebook-github-bot committed Aug 27, 2021
1 parent ca60be8 commit 5d6484e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion repo-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "git@github.com:facebook/react-native.git"
},
"dependencies": {
"devDependencies": {
"@babel/core": "^7.14.0",
"@babel/generator": "^7.14.0",
"@babel/template": "^7.0.0",
Expand Down
6 changes: 5 additions & 1 deletion scripts/bump-oss-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,12 @@ fs.writeFileSync(
);

let packageJson = JSON.parse(cat('package.json'));

packageJson.version = version;
delete packageJson.workspaces;

// Only keep 'repo-config` workspace
packageJson.workspaces = packageJson.workspaces.filter(w => w === 'repo-config');

delete packageJson.private;
fs.writeFileSync('package.json', JSON.stringify(packageJson, null, 2), 'utf-8');

Expand Down

0 comments on commit 5d6484e

Please sign in to comment.