Skip to content

Commit

Permalink
Remove bump-all-updated-packages script (#43534)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #43534

This is no longer used after switching to the new release workflow, which uses the newer and less error-prone `set-version` script.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D55027122

fbshipit-source-id: faa8cfd2af9b54fab611b108df162793c5768695
  • Loading branch information
huntie authored and facebook-github-bot committed Mar 19, 2024
1 parent bb4d13e commit 5a80935
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 786 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"android": "cd packages/rn-tester && npm run android",
"build-android": "./gradlew :packages:react-native:ReactAndroid:build",
"build": "node ./scripts/build/build.js",
"bump-all-updated-packages": "node ./scripts/monorepo/bump-all-updated-packages",
"clang-format": "clang-format -i --glob=*/**/*.{h,cpp,m,mm}",
"clean": "node ./scripts/build/clean.js",
"flow-check": "flow check",
Expand Down
21 changes: 0 additions & 21 deletions scripts/__tests__/npm-utils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
const {
applyPackageVersions,
getNpmInfo,
getPackageVersionStrByTag,
getVersionsBySpec,
publishPackage,
} = require('../npm-utils');
Expand Down Expand Up @@ -73,26 +72,6 @@ describe('npm-utils', () => {
});
});

describe('getPackageVersionStrByTag', () => {
it('should return package version string', () => {
execMock.mockImplementationOnce(() => ({code: 0, stdout: '0.34.2 \n'}));
const versionStr = getPackageVersionStrByTag('my-package', 'next');
expect(versionStr).toBe('0.34.2');
});
it('should throw error when invalid result', () => {
execMock.mockImplementationOnce(() => ({
code: 1,
stderr: 'Some error message',
}));

expect(() => {
getPackageVersionStrByTag('my-package', 'next');
}).toThrow(
"Failed to run 'npm view my-package@next version'\nSome error message",
);
});
});

describe('publishPackage', () => {
it('should run publish command', () => {
publishPackage(
Expand Down

This file was deleted.

36 changes: 0 additions & 36 deletions scripts/monorepo/__tests__/bump-package-version-test.js

This file was deleted.

135 changes: 0 additions & 135 deletions scripts/monorepo/align-package-versions.js

This file was deleted.

Loading

0 comments on commit 5a80935

Please sign in to comment.