mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
chore: format /scripts
This commit is contained in:
parent
65a104f7d4
commit
06f17c828a
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user