File tree 3 files changed +7
-17
lines changed 3 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,7 @@ jobs:
107
107
- run :
108
108
command : |
109
109
mkdir -p ./build/__test_utils__
110
- node ./scripts/print-warnings/print-warnings.js > build/WARNINGS
111
- node ./scripts/print-warnings/print-warnings.js --js > build/__test_utils__/ReactAllWarnings.js
110
+ node ./scripts/print-warnings/print-warnings.js > build/__test_utils__/ReactAllWarnings.js
112
111
- persist_to_workspace :
113
112
root : .
114
113
paths :
Original file line number Diff line number Diff line change @@ -123,9 +123,8 @@ jobs:
123
123
mkdir ./compiled
124
124
mv build/facebook-www ./compiled
125
125
126
- # Move WARNINGS to facebook-www
126
+ # Move ReactAllWarnings.js to facebook-www
127
127
mkdir ./compiled/facebook-www/__test_utils__
128
- mv build/WARNINGS ./compiled/facebook-www/WARNINGS
129
128
mv build/__test_utils__/ReactAllWarnings.js ./compiled/facebook-www/__test_utils__/ReactAllWarnings.js
130
129
131
130
# Move eslint-plugin-react-hooks into facebook-www
Original file line number Diff line number Diff line change 75
75
'!**/node_modules/**/*.js' ,
76
76
] ) . pipe (
77
77
through . obj ( transform , cb => {
78
- if ( process . argv [ 2 ] === '--js' ) {
79
- const warningsArray = Array . from ( warnings ) ;
80
- warningsArray . sort ( ) ;
81
- process . stdout . write (
82
- `/**
78
+ const warningsArray = Array . from ( warnings ) ;
79
+ warningsArray . sort ( ) ;
80
+ process . stdout . write (
81
+ `/**
83
82
* Copyright (c) Meta Platforms, Inc. and affiliates.
84
83
*
85
84
* This source code is licensed under the MIT license found in the
92
91
93
92
export default ${ JSON . stringify ( warningsArray , null , 2 ) } ;
94
93
`
95
- ) ;
96
- } else {
97
- process . stdout . write (
98
- Array . from ( warnings , warning => JSON . stringify ( warning ) )
99
- . sort ( )
100
- . join ( '\n' ) + '\n'
101
- ) ;
102
- }
94
+ ) ;
103
95
cb ( ) ;
104
96
} )
105
97
) ;
You can’t perform that action at this time.
0 commit comments