()
| 30 | }; |
| 31 | |
| 32 | export function ensureDevBundleDependencies() { |
| 33 | buildmessage.enterJob( |
| 34 | { |
| 35 | title: 'Installing Cordova in Meteor tool', |
| 36 | }, |
| 37 | () => { |
| 38 | require("../cli/dev-bundle-helpers.js") |
| 39 | .ensureDependencies(CORDOVA_DEV_BUNDLE_VERSIONS); |
| 40 | |
| 41 | const cordovaNodeModulesDir = pathJoin( |
| 42 | getDevBundle(), |
| 43 | "lib", |
| 44 | "node_modules", |
| 45 | "cordova-lib", |
| 46 | "node_modules", |
| 47 | ); |
| 48 | |
| 49 | [ |
| 50 | // Remove these bundled packages in preference to |
| 51 | // dev_bundle/lib/node_modules/<package name>: |
| 52 | "graceful-fs", |
| 53 | pathJoin("npm", "node_modules", "graceful-fs"), |
| 54 | ].forEach(pkg => { |
| 55 | const path = pathJoin(cordovaNodeModulesDir, pkg); |
| 56 | const stat = statOrNull(path); |
| 57 | if (stat && stat.isDirectory()) { |
| 58 | rm_recursive(path); |
| 59 | } |
| 60 | }); |
| 61 | } |
| 62 | ); |
| 63 | } |
| 64 | |
| 65 | export function displayNameForPlatform(platform) { |
| 66 | return PLATFORM_TO_DISPLAY_NAME_MAP[platform] || platform; |
no test coverage detected
searching dependent graphs…