Skip to content

Commit 0371fbd

Browse files
authored
chore(repo): Run format through turbo (#6291)
1 parent cfa7882 commit 0371fbd

File tree

33 files changed

+230
-17
lines changed

33 files changed

+230
-17
lines changed

.changeset/five-birds-cheer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
.vscode
99
.yalc
1010
/**/scripts/info.js
11+
*.map
12+
*.min.js
13+
*.bundle.js
1114
build
1215
coverage
13-
coverage
1416
dist
1517
/packages/nextjs/examples
1618
node_modules

.prettierrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"clean": "turbo clean",
1313
"dev": "TURBO_UI=0 FORCE_COLOR=1 turbo dev --filter=@clerk/* --filter=!@clerk/clerk-expo --filter=!@clerk/tanstack-react-start --filter=!@clerk/elements --filter=!@clerk/remix --filter=!@clerk/chrome-extension",
1414
"dev:js": "TURBO_UI=0 FORCE_COLOR=1 turbo dev:current --filter=@clerk/clerk-js",
15-
"format": "prettier --write .",
16-
"format:check": "prettier --cache --check .",
15+
"format": "turbo format && node scripts/format-non-workspace.mjs",
16+
"format:check": "turbo format:check && node scripts/format-non-workspace.mjs --check",
1717
"preinstall": "npx only-allow pnpm",
1818
"integration:secrets": "node ./scripts/1password-keys.mjs",
1919
"lint": "node ./scripts/lint.mjs",

packages/agent-toolkit/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"build": "tsup --env.NODE_ENV production",
4040
"clean": "rimraf ./dist",
4141
"dev": "tsup --watch",
42+
"format": "node ../../scripts/format-package.mjs",
43+
"format:check": "node ../../scripts/format-package.mjs --check",
4244
"lint": "eslint src",
4345
"lint:attw": "attw --pack . --profile esm-only",
4446
"lint:publint": "publint",

packages/astro/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080
"build:dts": "tsc --emitDeclarationOnly --declaration",
8181
"copy:components": "rm -rf ./components && mkdir -p ./components/ && cp -r ./src/astro-components/* ./components/ && cp ./src/types.ts ./",
8282
"dev": "tsup --watch --onSuccess \"pnpm build:dts\"",
83+
"format": "node ../../scripts/format-package.mjs",
84+
"format:check": "node ../../scripts/format-package.mjs --check",
8385
"lint": "eslint src env.d.ts",
8486
"lint:attw": "attw --pack . --profile esm-only --ignore-rules internal-resolution-error",
8587
"lint:publint": "pnpm copy:components && publint",

packages/backend/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
"clean": "rimraf ./dist",
9494
"dev": "tsup --watch",
9595
"dev:publish": "pnpm dev -- --env.publish",
96+
"format": "node ../../scripts/format-package.mjs",
97+
"format:check": "node ../../scripts/format-package.mjs --check",
9698
"lint": "eslint src",
9799
"lint:attw": "attw --pack . --profile node16 --ignore-rules false-cjs",
98100
"lint:publint": "publint",

packages/chrome-extension/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
"clean": "rimraf ./dist",
3939
"dev": "tsup --watch",
4040
"dev:publish": "pnpm dev -- --env.publish",
41+
"format": "node ../../scripts/format-package.mjs",
42+
"format:check": "node ../../scripts/format-package.mjs --check",
4143
"lint": "eslint src",
4244
"lint:attw": "attw --pack . --profile node16",
4345
"lint:publint": "publint",

packages/clerk-js/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
"dev:headless": "rspack serve --config rspack.config.js --env variant=\"clerk.headless.browser\"",
4545
"dev:origin": "rspack serve --config rspack.config.js --env devOrigin=http://localhost:${PORT:-4000}",
4646
"dev:sandbox": "rspack serve --config rspack.config.js --env devOrigin=http://localhost:${PORT:-4000} --env sandbox=1",
47+
"format": "node ../../scripts/format-package.mjs",
48+
"format:check": "node ../../scripts/format-package.mjs --check",
4749
"lint": "eslint src",
4850
"lint:attw": "attw --pack . --profile node16 --ignore-rules named-exports",
4951
"lint:publint": "publint || true",

packages/dev-cli/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"clerk-dev": "bin/cli.js"
2020
},
2121
"scripts": {
22+
"format": "node ../../scripts/format-package.mjs",
23+
"format:check": "node ../../scripts/format-package.mjs --check",
2224
"lint": "eslint src"
2325
},
2426
"dependencies": {

0 commit comments

Comments
 (0)