misskey-awawa/scripts/lint.js

25 lines
599 B
JavaScript

const execa = require('execa');
(async () => {
console.log('linting packages/backend ...');
await execa('npm', ['run', 'lint'], {
cwd: __dirname + '/../packages/backend',
stdout: process.stdout,
stderr: process.stderr,
});
console.log('linting packages/client ...');
await execa('npm', ['run', 'lint'], {
cwd: __dirname + '/../packages/client',
stdout: process.stdout,
stderr: process.stderr,
});
console.log('linting packages/sw ...');
await execa('npm', ['run', 'lint'], {
cwd: __dirname + '/../packages/sw',
stdout: process.stdout,
stderr: process.stderr,
});
})();