mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-14 18:27:44 +02:00
Chore: Fix packageJsonLint on some systems (#8721)
This commit is contained in:
parent
ea60087788
commit
bf41ed1b13
@ -2,6 +2,10 @@ import { execCommand, getRootDir } from '@joplin/utils';
|
||||
import { chdir } from 'process';
|
||||
|
||||
const main = async () => {
|
||||
// Having no output seems to cause lint-staged to fail on some systems.
|
||||
// Add a console.log statement to work around this issue.
|
||||
console.log('Linting package.json files...');
|
||||
|
||||
const rootDir = await getRootDir();
|
||||
chdir(rootDir);
|
||||
await execCommand('yarn run npmPkgJsonLint --configFile .npmpackagejsonlintrc.json --quiet .');
|
||||
|
Loading…
Reference in New Issue
Block a user