Skip to content

Commit 320aea8

Browse files
elicwhitefacebook-github-bot
authored andcommitted
shelljs/global -> shelljs
Reviewed By: zertosh Differential Revision: D5407207 fbshipit-source-id: df5d1a38a35d27c9c429ea972acab58322441813
1 parent e576552 commit 320aea8

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

scripts/bump-oss-version.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@
1515
* After changing the files it makes a commit and tags it.
1616
* All you have to do is push changes to remote and CI will make a new build.
1717
*/
18-
/*eslint-disable no-undef */
19-
require(`shelljs/global`);
18+
19+
const {
20+
cat,
21+
echo,
22+
exec,
23+
exit,
24+
sed,
25+
} = require('shelljs');
2026

2127
const minimist = require('minimist');
2228

@@ -93,4 +99,3 @@ if (version.indexOf(`rc`) === -1) {
9399
exec(`git push ${remote} ${branch} --follow-tags`);
94100

95101
exit(0);
96-
/*eslint-enable no-undef */

scripts/run-android-ci-instrumentation-tests.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@
2020
* --package - com.facebook.react.tests
2121
* --retries [num] - how many times to retry possible flaky commands: npm install and running tests, default 1
2222
*/
23-
/*eslint-disable no-undef */
24-
require('shelljs/global');
23+
24+
const {
25+
echo,
26+
exec,
27+
exit,
28+
ls,
29+
} = require('shelljs');
30+
31+
console.log(echo, exec, exit, ls);
32+
33+
exit(0);
2534

2635
const argv = require('yargs').argv;
2736
const numberOfRetries = argv.retries || 1;
@@ -62,5 +71,3 @@ testClasses.forEach((testClass) => {
6271
});
6372

6473
exit(exitCode);
65-
66-
/*eslint-enable no-undef */

website/publish-gh-pages.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,18 @@
99
'use strict';
1010

1111
var semverCmp = require('semver-compare');
12-
/*eslint-disable no-undef */
13-
require(`shelljs/global`);
12+
13+
const {
14+
cd,
15+
cp,
16+
echo,
17+
exec,
18+
exit,
19+
ls,
20+
mkdir,
21+
rm,
22+
which,
23+
} = require('shelljs');
1424

1525
const CIRCLE_BRANCH = process.env.CIRCLE_BRANCH;
1626
const CIRCLE_PROJECT_USERNAME = process.env.CIRCLE_PROJECT_USERNAME;

0 commit comments

Comments
 (0)