Skip to content

Commit c93b755

Browse files
authored
chore(repo): Single prettier version and consistent package.json (clerk#4316)
1 parent d5a412b commit c93b755

14 files changed

Lines changed: 131 additions & 110 deletions

File tree

.changeset/witty-beds-double.md

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

.prettierrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"printWidth": 120,
3-
"singleAttributePerLine": true,
42
"arrowParens": "avoid",
53
"bracketSpacing": true,
64
"jsxSingleQuote": true,
5+
"plugins": ["prettier-plugin-packagejson", "prettier-plugin-tailwindcss"],
6+
"printWidth": 120,
77
"semi": true,
8+
"singleAttributePerLine": true,
89
"singleQuote": true,
910
"tabWidth": 2,
10-
"trailingComma": "all",
11-
"plugins": ["prettier-plugin-tailwindcss"]
11+
"trailingComma": "all"
1212
}

integration/templates/astro-hybrid/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"name": "astro-clerk-hybrid-playground",
3-
"type": "module",
43
"version": "0.0.1",
4+
"type": "module",
55
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev --port $PORT",
6+
"astro": "astro",
87
"build": "astro check && astro build",
8+
"dev": "astro dev",
99
"preview": "astro preview --port $PORT",
10-
"astro": "astro"
10+
"start": "astro dev --port $PORT"
1111
},
1212
"dependencies": {
1313
"@astrojs/check": "^0.9.4",
14-
"@astrojs/react": "^3.6.2",
1514
"@astrojs/node": "^8.3.4",
15+
"@astrojs/react": "^3.6.2",
1616
"@types/react": "^18.3.3",
1717
"@types/react-dom": "^18.3.0",
1818
"astro": "^4.15.11",

integration/templates/astro-node/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"name": "astro-clerk-playground",
3-
"type": "module",
43
"version": "0.0.1",
4+
"type": "module",
55
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev --port $PORT",
6+
"astro": "astro",
87
"build": "astro check && astro build",
8+
"dev": "astro dev",
99
"preview": "astro preview --port $PORT",
10-
"astro": "astro"
10+
"start": "astro dev --port $PORT"
1111
},
1212
"dependencies": {
1313
"@astrojs/check": "^0.9.4",
14+
"@astrojs/node": "^8.3.4",
1415
"@astrojs/react": "^3.6.2",
1516
"@astrojs/tailwind": "^5.1.1",
16-
"@astrojs/node": "^8.3.4",
1717
"@types/react": "^18.3.3",
1818
"@types/react-dom": "^18.3.0",
1919
"astro": "^4.15.11",

integration/templates/expo-web/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "expo-web",
3-
"main": "expo-router/entry",
43
"version": "1.0.0",
4+
"private": true,
5+
"main": "expo-router/entry",
56
"scripts": {
6-
"dev": "RCT_METRO_PORT=$PORT expo start --web --port $PORT",
77
"build": "expo export -p web",
8-
"start": "npx serve dist --single",
9-
"lint": "expo lint"
8+
"dev": "RCT_METRO_PORT=$PORT expo start --web --port $PORT",
9+
"lint": "expo lint",
10+
"start": "npx serve dist --single"
1011
},
1112
"jest": {
1213
"preset": "jest-expo"
@@ -30,8 +31,8 @@
3031
"react-native-reanimated": "~3.10.1",
3132
"react-native-safe-area-context": "4.10.9",
3233
"react-native-screens": "~3.31.1",
33-
"react-native-web": "~0.19.6",
34-
"react-native-url-polyfill": "^2.0.0"
34+
"react-native-url-polyfill": "^2.0.0",
35+
"react-native-web": "~0.19.6"
3536
},
3637
"devDependencies": {
3738
"@babel/core": "^7.20.0",
@@ -42,6 +43,5 @@
4243
"jest-expo": "~51.0.3",
4344
"react-test-renderer": "18.2.0",
4445
"typescript": "~5.6.2"
45-
},
46-
"private": true
46+
}
4747
}

integration/templates/tanstack-router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"dev": "vite --port=$PORT",
76
"build": "vite build",
7+
"dev": "vite --port=$PORT",
88
"serve": "vite preview --port=$PORT",
99
"start": "vite"
1010
},

package-lock.json

Lines changed: 40 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@
3131
"test": "FORCE_COLOR=1 turbo test --concurrency=${TURBO_CONCURRENCY:-80%}",
3232
"test:cache:clear": "FORCE_COLOR=1 turbo test:cache:clear --continue --concurrency=${TURBO_CONCURRENCY:-80%}",
3333
"test:integration:ap-flows": "npm run test:integration:base -- --grep @ap-flows",
34+
"test:integration:astro": "E2E_APP_ID=astro.* npm run test:integration:base -- --grep @astro",
3435
"test:integration:base": "npx playwright test --config integration/playwright.config.ts",
3536
"test:integration:cleanup": "npx playwright test --config integration/playwright.cleanup.config.ts",
3637
"test:integration:deployment:nextjs": "npx playwright test --config integration/playwright.deployments.config.ts",
3738
"test:integration:elements": "E2E_APP_ID=elements.* npm run test:integration:base -- --grep @elements",
39+
"test:integration:expo-web": "E2E_APP_ID=expo.expo-web npm run test:integration:base -- --grep @expo-web",
3840
"test:integration:express": "E2E_APP_ID=express.* npm run test:integration:base -- --grep @express",
3941
"test:integration:generic": "E2E_APP_ID=react.vite.*,next.appRouter.withEmailCodes* npm run test:integration:base -- --grep @generic",
4042
"test:integration:nextjs": "E2E_APP_ID=next.appRouter.* npm run test:integration:base -- --grep @nextjs",
41-
"test:integration:astro": "E2E_APP_ID=astro.* npm run test:integration:base -- --grep @astro",
42-
"test:integration:expo-web": "E2E_APP_ID=expo.expo-web npm run test:integration:base -- --grep @expo-web",
4343
"test:integration:quickstart": "E2E_APP_ID=quickstart.* npm run test:integration:base -- --grep @quickstart",
44+
"test:integration:remix": "echo 'placeholder'",
4445
"test:integration:sessions": "npm run test:integration:base -- --grep @sessions",
45-
"test:integration:tanstack-start": "E2E_APP_ID=tanstack.start npm run test:integration:base -- --grep @tanstack-start",
4646
"test:integration:tanstack-router": "E2E_APP_ID=tanstack.router npm run test:integration:base -- --grep @tanstack-router",
47-
"test:integration:remix": "echo 'placeholder'",
47+
"test:integration:tanstack-start": "E2E_APP_ID=tanstack.start npm run test:integration:base -- --grep @tanstack-start",
4848
"turbo:clean": "turbo daemon clean",
4949
"update:lockfile": "npm run nuke && npm install -D --arch=x64 --platform=linux turbo && npm install -D --arch=arm64 --platform=darwin turbo",
5050
"version": "changeset version && npm install --package-lock-only --engine-strict=false",
@@ -90,7 +90,8 @@
9090
"jest-chrome": "^0.8.0",
9191
"jest-environment-jsdom": "^29.3.1",
9292
"lint-staged": "^14.0.1",
93-
"prettier": "^3.3.2",
93+
"prettier": "^3.3.3",
94+
"prettier-plugin-packagejson": "^2.5.3",
9495
"prettier-plugin-tailwindcss": "^0.6.3",
9596
"publint": "^0.2.4",
9697
"react": "18.3.1",

0 commit comments

Comments
 (0)