Files
spacedrive/apps/mobile/scripts/postinstall.js
Utku 7b739d0b33 Mobile Strict Mode and Types (#578)
* better compiler options

* fix types

* fix more types
2023-02-24 08:11:48 +00:00

19 lines
545 B
JavaScript

// @ts-ignore
let fs = require('fs-extra');
let path = require('path');
async function copyReactNativeCodegen() {
const paths = [
['../../../node_modules/react-native-codegen', '../node_modules/react-native-codegen'],
['../../../node_modules/jsc-android', '../node_modules/jsc-android']
];
for (const pathTuple of paths) {
const [src, dest] = [path.join(__dirname, pathTuple[0]), path.join(__dirname, pathTuple[1])];
await fs.remove(dest).catch(() => {});
await fs.move(src, dest).catch(() => {});
}
}
copyReactNativeCodegen();