mirror of https://github.com/laurent22/joplin.git
Chore: Fix packageJsonLint on some systems (#8721)
parent
ea60087788
commit
bf41ed1b13
|
@ -2,6 +2,10 @@ import { execCommand, getRootDir } from '@joplin/utils';
|
||||||
import { chdir } from 'process';
|
import { chdir } from 'process';
|
||||||
|
|
||||||
const main = async () => {
|
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();
|
const rootDir = await getRootDir();
|
||||||
chdir(rootDir);
|
chdir(rootDir);
|
||||||
await execCommand('yarn run npmPkgJsonLint --configFile .npmpackagejsonlintrc.json --quiet .');
|
await execCommand('yarn run npmPkgJsonLint --configFile .npmpackagejsonlintrc.json --quiet .');
|
||||||
|
|
Loading…
Reference in New Issue