Do not bump every package version for every release

Summary:
This diff sets all package version to "0.0.0" except of the root package and changes the bump script to only bump version in the root package. This should reduce possibility of conflicts on release diffs. Anyway we always use the same version for all of our packages, so we can only set it to the root.

Before npm publishing we will set all package versions to the same number as in the root package (we actually already do that) so there will be no differences except we won't need to bump version in  more than 100 packages each release.

Reviewed By: mweststrate

Differential Revision: D25162373

fbshipit-source-id: 02fe401bee72845339c67925c130027bdaee559d
This commit is contained in:
Anton Nikolaev
2020-12-02 02:37:22 -08:00
committed by Facebook GitHub Bot
parent 92bd68a371
commit dbc888613b
36 changed files with 69 additions and 62 deletions

View File

@@ -23,6 +23,8 @@ import {
babelTransformationsDir,
} from './paths';
const {version} = require('../package.json');
const dev = process.env.NODE_ENV !== 'production';
export function die(err: Error) {
@@ -35,6 +37,9 @@ export async function generatePluginEntryPoints() {
const plugins = await getSourcePlugins();
for (const plugin of plugins) {
plugin.isDefault = true;
plugin.version = plugin.version === '0.0.0' ? version : plugin.version;
plugin.flipperSDKVersion =
plugin.flipperSDKVersion === '0.0.0' ? version : plugin.flipperSDKVersion;
}
if (await fs.pathExists(defaultPluginsIndexDir)) {
await fs.remove(defaultPluginsIndexDir);