MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / run

Method run

lib/tasks/npm-install.js:14–24  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

12 }
13
14 run(options) {
15 let ui = this.ui;
16 let packageJson = path.join(this.project.root, 'package.json');
17
18 if (!fs.existsSync(packageJson)) {
19 ui.writeWarnLine('Skipping install: `package.json` not found.');
20 return Promise.resolve();
21 } else {
22 return super.run(options);
23 }
24 }
25
26 formatStartMessage(packages) {
27 return `${this.packageManagerOutputName}: Installing ${formatPackageList(packages)} ...`;

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected