diff --git a/package.json b/package.json index bf0e2ba..0cc1324 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ "watch": "tsup --watch", "lint": "eslint src examples/cloudflare-pages/app examples/cloudflare-pages/server examples/cloudflare-workers/app examples/cloudflare-workers/server", "lint:fix": "eslint src examples/cloudflare-pages/app examples/cloudflare-pages/server examples/cloudflare-workers/app examples/cloudflare-workers/server --fix", + "format": "prettier --check --cache \"src/**/*.{js,ts,tsx}\" \"examples/cloudflare-pages/app/**/*.{js,ts,tsx}\" \"examples/cloudflare-workers/app/**/*.{js,ts,tsx}\"", + "format:fix": "prettier --write --cache --cache-strategy metadata \"src/**/*.{js,ts,tsx}\" \"examples/cloudflare-pages/app/**/*.{js,ts,tsx}\" \"examples/cloudflare-workers/app/**/*.{js,ts,tsx}\"", "publint": "publint", "prerelease": "npm run build && npm run test", "release": "np" @@ -70,4 +72,4 @@ "@hono/vite-dev-server": "^0.17.0", "remix-hono": "^0.0.16" } -} +} \ No newline at end of file