lite: run prettier on js + json files

This commit is contained in:
alex 2023-05-02 16:12:34 +01:00
parent 4242f6ee3d
commit bb1c84e101
23 changed files with 23 additions and 23 deletions

View file

@ -44,7 +44,7 @@
"build-api": "lazy build-api", "build-api": "lazy build-api",
"build-package": "lazy build-package", "build-package": "lazy build-package",
"lint": "lazy lint", "lint": "lazy lint",
"format": "prettier --write \"**/*.{ts,tsx}\"", "format": "prettier --write \"**/*.{ts,tsx,js,jsx,json}\"",
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts", "typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
"check-scripts": "tsx scripts/check-scripts.ts", "check-scripts": "tsx scripts/check-scripts.ts",
"api-check": "lazy api-check", "api-check": "lazy api-check",

View file

@ -15,7 +15,7 @@ async function main() {
'prettier', 'prettier',
shouldFix ? '--write' : '--check', shouldFix ? '--write' : '--check',
// we have to run prettier from root so it picks up the ignore file // we have to run prettier from root so it picks up the ignore file
join(relative(REPO_ROOT, process.cwd()), '**', '*.{ts,tsx}'), join(relative(REPO_ROOT, process.cwd()), '**', '*.{ts,tsx,js,jsx,json}'),
], ],
{ pwd: REPO_ROOT } { pwd: REPO_ROOT }
) )