MCPcopy
hub / github.com/meteor/meteor / ensureDevBundleDependencies

Function ensureDevBundleDependencies

tools/cordova/index.js:32–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30};
31
32export 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
65export function displayNameForPlatform(platform) {
66 return PLATFORM_TO_DISPLAY_NAME_MAP[platform] || platform;

Callers 5

doRunCommandFunction · 0.90
buildCommandFunction · 0.90
doTestCommandFunction · 0.90

Calls 4

getDevBundleFunction · 0.90
statOrNullFunction · 0.90
pathJoinFunction · 0.85
forEachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…