(config: Config, platform: string)
| 145 | } |
| 146 | |
| 147 | export async function copyCordovaJS(config: Config, platform: string): Promise<void> { |
| 148 | const cordovaPath = resolveNode(config.app.rootDir, '@capacitor/core', 'cordova.js'); |
| 149 | if (!cordovaPath) { |
| 150 | fatal( |
| 151 | `Unable to find ${c.strong('node_modules/@capacitor/core/cordova.js')}.\n` + |
| 152 | `Are you sure ${c.strong('@capacitor/core')} is installed?`, |
| 153 | ); |
| 154 | } |
| 155 | |
| 156 | return copy(cordovaPath, join(await getWebDir(config, platform), 'cordova.js')); |
| 157 | } |
| 158 | |
| 159 | export async function createEmptyCordovaJS(config: Config, platform: string): Promise<void> { |
| 160 | const webDir = await getWebDir(config, platform); |
no test coverage detected