From bf41ed1b13244112117056e8627ca6e360d2c0ba Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Thu, 24 Aug 2023 11:51:53 -0700 Subject: [PATCH] Chore: Fix packageJsonLint on some systems (#8721) --- packages/tools/packageJsonLint.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tools/packageJsonLint.ts b/packages/tools/packageJsonLint.ts index fb796399d..4ff9b0edb 100644 --- a/packages/tools/packageJsonLint.ts +++ b/packages/tools/packageJsonLint.ts @@ -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 .');