chore: format /scripts

This commit is contained in:
Sérgio Ramos 2017-05-26 02:22:35 +01:00
parent 65a104f7d4
commit 06f17c828a
1 changed files with 5 additions and 5 deletions

View File

@ -33,10 +33,10 @@ const exec = (args = []) => {
return cp;
};
const lint = (scope) => exec(['run', 'lint', '--scope', scope]);
const test = (scope) => exec(['run', 'test', '--scope', scope]);
const lint = scope => exec(['run', 'lint', '--scope', scope]);
const test = scope => exec(['run', 'test', '--scope', scope]);
const run = async (scope) => {
const run = async scope => {
if (argv.lint) {
await lint(scope);
}
@ -63,9 +63,9 @@ const gather = async () => {
const pkgs = await map(folders, async folder =>
JSON.parse(await readFile(path.join(folder, 'package.json'), 'utf-8'))
)
);
return await map(pkgs.map(({ name }) => name), run)
return await map(pkgs.map(({ name }) => name), run);
};
main(gather());