diff --git a/.gitignore b/.gitignore index db5315411c..60cca8f981 100644 --- a/.gitignore +++ b/.gitignore @@ -13,8 +13,9 @@ bun.lockb pnpm-lock.yaml yarn.lock -# ESLint cache +# Cache files .eslintcache +.prettiercache node_modules dist diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..cccae51c94 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +src/types/comfyRegistryTypes.ts +src/types/generatedManagerTypes.ts \ No newline at end of file diff --git a/package.json b/package.json index 9627875af1..5f9f81745a 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,10 @@ "build:types": "vite build --config vite.types.config.mts && node scripts/prepare-types.js", "zipdist": "node scripts/zipdist.js", "typecheck": "vue-tsc --noEmit", - "format": "prettier --write './**/*.{js,ts,tsx,vue,mts}'", - "format:check": "prettier --check './**/*.{js,ts,tsx,vue,mts}'", + "format": "prettier --write './**/*.{js,ts,tsx,vue,mts}' --cache", + "format:check": "prettier --check './**/*.{js,ts,tsx,vue,mts}' --cache", + "format:no-cache": "prettier --write './**/*.{js,ts,tsx,vue,mts}'", + "format:check:no-cache": "prettier --check './**/*.{js,ts,tsx,vue,mts}'", "test:browser": "npx playwright test", "test:unit": "vitest run tests-ui/tests", "test:component": "vitest run src/components/", @@ -25,7 +27,8 @@ "lint:fix": "eslint src --cache --fix", "lint:no-cache": "eslint src", "lint:fix:no-cache": "eslint src --fix", - "knip": "knip", + "knip": "knip --cache", + "knip:no-cache": "knip", "locale": "lobe-i18n locale", "collect-i18n": "playwright test --config=playwright.i18n.config.ts", "json-schema": "tsx scripts/generate-json-schema.ts",