(buildPath)
| 114 | }, files) |
| 115 | |
| 116 | const copyNonJavaScriptFiles = (buildPath) => { |
| 117 | createPackageJson(buildPath, pkg) |
| 118 | copyFiles(buildPath, [ |
| 119 | 'LICENSE', |
| 120 | // 'README.md', |
| 121 | 'yarn.lock', |
| 122 | 'WatermelonDB.podspec', |
| 123 | 'react-native.config.js', // NOTE: this is needed for autolinking |
| 124 | // 'docs', |
| 125 | 'native/shared', |
| 126 | 'native/ios', |
| 127 | 'native/android', |
| 128 | 'native/android-jsi', |
| 129 | 'native/windows', |
| 130 | ]) |
| 131 | cleanFolder(`${buildPath}/native/ios/WatermelonDB.xcodeproj/xcuserdata`) |
| 132 | cleanFolder(`${buildPath}/native/android/build`) |
| 133 | cleanFolder(`${buildPath}/native/android/bin/build`) |
| 134 | cleanFolder(`${buildPath}/native/android-jsi/.cxx`) |
| 135 | cleanFolder(`${buildPath}/native/android-jsi/.externalNativeBuild`) |
| 136 | cleanFolder(`${buildPath}/native/android-jsi/build`) |
| 137 | cleanFolder(`${buildPath}/native/android-jsi/bin/build`) |
| 138 | cleanFolder(`${buildPath}/native/windows/.vs`) |
| 139 | cleanFolder(`${buildPath}/native/windows/x64`) |
| 140 | cleanFolder(`${buildPath}/native/windows/WatermelonDB/Generated Files`) |
| 141 | cleanFolder(`${buildPath}/native/windows/WatermelonDB/obj`) |
| 142 | cleanFolder(`${buildPath}/native/windows/WatermelonDB/x64`) |
| 143 | } |
| 144 | |
| 145 | if (isDevelopment) { |
| 146 | const buildCjsModule = buildModule(CJS_MODULES) |
no test coverage detected
searching dependent graphs…