File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
packages/@rnw-scripts/just-task Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ async function downloadFlowTypes(overwrite = false) {
112
112
113
113
const reactNativeRef = await getAbbreviatedRef ( reactNativeVersion ) ;
114
114
115
+ // Download the 'flow-typed' path from the react-native monorepo root
116
+ // and copy it into a ./flow folder
115
117
await downloadFilesFromReactNative (
116
118
reactNativeRef ,
117
119
'flow-typed' ,
@@ -120,6 +122,16 @@ async function downloadFlowTypes(overwrite = false) {
120
122
overwrite ,
121
123
) ;
122
124
125
+ // Download the 'flow' path from the react-native package root
126
+ // and copy it into a ./flow folder
127
+ await downloadFilesFromReactNative (
128
+ reactNativeRef ,
129
+ 'packages/react-native/flow' ,
130
+ path . resolve ( rnDir , '../.flow/flow' ) ,
131
+ '**/*.*' ,
132
+ overwrite ,
133
+ ) ;
134
+
123
135
// Get the unpublished @react -native/* flow files from the react-native monorepo
124
136
const reactNativePackages = [
125
137
{
@@ -148,6 +160,8 @@ task(
148
160
series ( 'downloadFlowTypes' , async ( ) => {
149
161
const flowBinPath = require . resolve ( 'flow-bin' ) ;
150
162
const flowPath = path . join ( path . dirname ( flowBinPath ) , 'cli.js' ) ;
151
- require ( 'child_process' ) . execSync ( `node "${ flowPath } " check` , { stdio : 'inherit' } ) ;
163
+ require ( 'child_process' ) . execSync ( `node "${ flowPath } " check` , {
164
+ stdio : 'inherit' ,
165
+ } ) ;
152
166
} ) ,
153
167
) ;
Original file line number Diff line number Diff line change 106
106
107
107
[libs]
108
108
interface.js
109
- flow/
109
+ ../node_modules/.flow/ flow/
110
110
../node_modules/.flow/flow-typed/
111
111
../node_modules/react-native/src/types
112
112
src/types/
You can’t perform that action at this time.
0 commit comments