From 06f17c828a323ddcc57fbd27ad458629996378b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 26 May 2017 02:22:35 +0100 Subject: [PATCH] chore: format /scripts --- scripts/run-staged-pkg | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/run-staged-pkg b/scripts/run-staged-pkg index 8a3b8d45..132373c0 100755 --- a/scripts/run-staged-pkg +++ b/scripts/run-staged-pkg @@ -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());