File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-update-cli" ,
3- "version" : " 2.3.0 " ,
3+ "version" : " 2.3.1 " ,
44 "description" : " command line tool for react-native-update (remote updates for react native)" ,
55 "main" : " index.js" ,
66 "bin" : {
Original file line number Diff line number Diff line change @@ -256,6 +256,19 @@ async function runReactNativeBundleCommand({
256256 ! isSentry ,
257257 ) ;
258258 }
259+ if ( platform === 'harmony' ) {
260+ const harmonyRawAssetsPath =
261+ 'harmony/entry/src/main/resources/rawfile/assets' ;
262+ // copy all files in outputFolder to harmonyRawPath
263+ // assets should be in rawfile/assets
264+ fs . ensureDirSync ( harmonyRawAssetsPath ) ;
265+ fs . copySync ( outputFolder , harmonyRawAssetsPath , { overwrite : true } ) ;
266+ fs . moveSync (
267+ `${ harmonyRawAssetsPath } /bundle.harmony.js` ,
268+ `${ harmonyRawAssetsPath } /../bundle.harmony.js` ,
269+ { overwrite : true } ,
270+ ) ;
271+ }
259272 resolve ( null ) ;
260273 }
261274 } ) ;
You can’t perform that action at this time.
0 commit comments