Skip to content

Commit 001a6df

Browse files
committedNov 10, 2018
fix: prettier
1 parent 76fad65 commit 001a6df

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed
 

Diff for: ‎commands/bootstrap/index.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ class BootstrapCommand extends Command {
345345
let rootVersion;
346346

347347
if (hoisting && isHoistedPackage(externalName, hoisting)) {
348-
const commonVersion = Array.from(externalDependents.keys()).reduce(
349-
(a, b) => (externalDependents.get(a).size > externalDependents.get(b).size ? a : b)
348+
const commonVersion = Array.from(externalDependents.keys()).reduce((a, b) =>
349+
externalDependents.get(a).size > externalDependents.get(b).size ? a : b
350350
);
351351

352352
// Get the version required by the repo root (if any).
@@ -471,13 +471,15 @@ class BootstrapCommand extends Command {
471471
// installed in package directories.
472472
actions.push(() => {
473473
// Compute the list of candidate directories synchronously
474-
const candidates = root.filter(dep => dep.dependents.length).reduce((list, { name, dependents }) => {
475-
const dirs = dependents
476-
.filter(pkg => pkg.nodeModulesLocation !== rootPkg.nodeModulesLocation)
477-
.map(pkg => path.join(pkg.nodeModulesLocation, name));
478-
479-
return list.concat(dirs);
480-
}, []);
474+
const candidates = root
475+
.filter(dep => dep.dependents.length)
476+
.reduce((list, { name, dependents }) => {
477+
const dirs = dependents
478+
.filter(pkg => pkg.nodeModulesLocation !== rootPkg.nodeModulesLocation)
479+
.map(pkg => path.join(pkg.nodeModulesLocation, name));
480+
481+
return list.concat(dirs);
482+
}, []);
481483

482484
if (!candidates.length) {
483485
tracker.verbose("hoist", "nothing to prune");

Diff for: ‎commands/create/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ class CreateCommand extends Command {
365365
${this.binFileName} --help
366366
`
367367
: this.options.esModule
368-
? `import ${this.camelName} from '${this.pkgName}';`
369-
: `const ${this.camelName} = require('${this.pkgName}');`
368+
? `import ${this.camelName} from '${this.pkgName}';`
369+
: `const ${this.camelName} = require('${this.pkgName}');`
370370
}
371371
372372
// TODO: DEMONSTRATE API

0 commit comments

Comments
 (0)
Please sign in to comment.