chore: enable prettier cache, speeds up subsequent runs ~6.5x (#37005)

This commit is contained in:
Beng Eu authored and GitHub committed 2025-07-10 20:32:12 +08:00
1 parent 80fc25ea01
commit 6504a8460f
10 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
"codegen:examples": "cp -r ../../examples ./examples",
"codegen:graphql": "tsx --conditions=react-server ./scripts/graphqlSchema.ts && graphql-codegen --config codegen.ts",
"codegen:references": "tsx features/docs/Reference.generated.script.ts",
"codemod:frontmatter": "node ./scripts/codemod/mdx-meta.mjs && prettier --write \"content/**/*.mdx\"",
"codemod:frontmatter": "node ./scripts/codemod/mdx-meta.mjs && prettier --cache --write \"content/**/*.mdx\"",
"dev": "concurrently --kill-others \"next dev --port 3001\" \"pnpm run dev:watch:troubleshooting\"",
"dev:secrets:pull": "AWS_PROFILE=supabase-dev node ../../scripts/getSecrets.js -n local/docs",
"dev:watch:troubleshooting": "node ./scripts/troubleshooting/watch.mjs",
+1 -1
View File
@@ -131,4 +131,4 @@ validate.analytics.v0:
# Format everything - easier for git to track changes.
###############################################################################
format:
npx prettier --write .
npx prettier --cache --write .
+2 -2
View File
@@ -18,8 +18,8 @@
"test:report": "open coverage/lcov-report/index.html",
"deploy:staging": "VERCEL_ORG_ID=team_E6KJ1W561hMTjon1QSwOh0WO VERCEL_PROJECT_ID=QmcmhbiAtCMFTAHCuGgQscNbke4TzgWULECctNcKmxWCoT vercel --prod -A .vercel/staging.json",
"typecheck": "tsc --noEmit",
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write .",
"prettier:check": "prettier --cache --check .",
"prettier:write": "prettier --cache --write .",
"build:deno-types": "tsx scripts/deno-types.ts",
"build:graphql-types": "tsx scripts/download-graphql-schema.mts && pnpm graphql-codegen --config scripts/codegen.ts",
"build:graphql-types:watch": "pnpm graphql-codegen --config scripts/codegen.ts --watch"
+1 -1
View File
@@ -7,7 +7,7 @@
"preinstall": "npx only-allow pnpm",
"dev": "next dev --turbopack --port 3004",
"build": "pnpm run content:build && pnpm run build:registry && pnpm run build:llms && next build",
"build:registry": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.mts && prettier --write registry.json && rimraf -G public/r && shadcn build && tsx scripts/clean-registry.ts",
"build:registry": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.mts && prettier --cache --write registry.json && rimraf -G public/r && shadcn build && tsx scripts/clean-registry.ts",
"build:llms": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-llms-txt.ts",
"start": "next start",
"lint": "next lint",
+1 -1
View File
@@ -13,7 +13,7 @@
"clean": "rimraf node_modules",
"typecheck": "pnpm run content:build && tsc --noEmit",
"content:build": "contentlayer2 build && node scripts/generateStaticContent.mjs",
"prettier": "prettier --write \"./{pages,components,lib,stores,styles,tests}/**/*.{ts,tsx,md,js,jsx,json}\"",
"prettier": "prettier --cache --write \"./{pages,components,lib,stores,styles,tests}/**/*.{ts,tsx,md,js,jsx,json}\"",
"postbuild": "node ./internals/generate-sitemap.mjs && ./../../scripts/upload-static-assets.sh"
},
"dependencies": {
@@ -7,7 +7,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --write \"pages/**/*.{js,jsx,ts,tsx,css,md,json}\""
"format": "prettier --cache --write \"pages/**/*.{js,jsx,ts,tsx,css,md,json}\""
},
"dependencies": {
"@supabase/auth-helpers-nextjs": "^0.6.0",
@@ -7,7 +7,7 @@
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web",
"format": "prettier --write \"**/*.{js,json,md,ts,tsx,jsx,css}\""
"format": "prettier --cache --write \"**/*.{js,json,md,ts,tsx,jsx,css}\""
},
"dependencies": {
"@react-native-async-storage/async-storage": "1.23.1",
@@ -7,7 +7,7 @@
"dev": "vite",
"build": "vite build",
"serve": "vite preview",
"format": "prettier --write \"src/*.{js,json,ts,tsx,jsx}\""
"format": "prettier --cache --write \"src/*.{js,json,ts,tsx,jsx}\""
},
"license": "MIT",
"devDependencies": {
+2 -2
View File
@@ -22,8 +22,8 @@
"dev:design-system": "turbo run dev --filter=design-system --parallel",
"lint": "turbo run lint",
"typecheck": "turbo --continue typecheck",
"test:prettier": "prettier -c '{apps,packages}/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'",
"format": "prettier --write '{apps,packages}/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'",
"test:prettier": "prettier --cache --check '{apps,packages}/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'",
"format": "prettier --cache --write '{apps,packages}/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'",
"test:docs": "turbo run test --filter=docs",
"test:ui": "turbo run test --filter=ui",
"test:ui-patterns": "turbo run test --filter=ui-patterns",
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": {
"preinstall": "npx only-allow pnpm",
"clean": "rimraf node_modules",
"codegen": "openapi-typescript --redocly ./redocly.yaml --alphabetize --default-non-nullable=false && prettier --write types/*.d.ts"
"codegen": "openapi-typescript --redocly ./redocly.yaml --alphabetize --default-non-nullable=false && prettier --cache --write types/*.d.ts"
},
"author": "",
"license": "MIT",