1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00

chore: format /scripts

This commit is contained in:
Sérgio Ramos 2017-05-26 02:22:35 +01:00
parent 65a104f7d4
commit 06f17c828a

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());