Skip to content

Commit

Permalink
feat(repo): Use catalog: protocol (#4605)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko authored Nov 20, 2024
1 parent 27526a3 commit dd09050
Show file tree
Hide file tree
Showing 34 changed files with 309 additions and 318 deletions.
2 changes: 2 additions & 0 deletions .changeset/friendly-mice-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
3 changes: 1 addition & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
engine-strict=false
legacy-peer-deps=false
link-workspace-packages=true
legacy-peer-deps=false
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"**/.yalc": true,
"**/node_modules": true,
".temp_integration": true,
"packages/*/dist": true
"packages/*/dist": true,
"pnpm-lock.yaml": true,
},
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsdk": "node_modules/typescript/lib",
Expand All @@ -23,4 +24,5 @@
"url": "https://json.schemastore.org/chrome-manifest.json"
}
],
"npm.packageManager": "pnpm",
}
4 changes: 1 addition & 3 deletions integration/presets/nuxt.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { applicationConfig } from '../models/applicationConfig';
import { templates } from '../templates';

const clerkNuxtLocal = `file:${process.cwd()}/packages/nuxt`;

const nuxtNode = applicationConfig()
.setName('nuxt-node')
.useTemplate(templates['nuxt-node'])
Expand All @@ -12,7 +10,7 @@ const nuxtNode = applicationConfig()
.addScript('dev', 'pnpm dev')
.addScript('build', 'pnpm build')
.addScript('serve', 'pnpm preview')
.addDependency('@clerk/nuxt', clerkNuxtLocal);
.addDependency('@clerk/nuxt', '*');

export const nuxt = {
node: nuxtNode,
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"@types/cross-spawn": "^6.0.3",
"@types/jest": "^29.3.1",
"@types/node": "^20.11.24",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"@vitest/coverage-v8": "2.1.4",
"citty": "^0.1.4",
"conventional-changelog-conventionalcommits": "^4.6.3",
Expand All @@ -94,16 +94,16 @@
"prettier-plugin-packagejson": "^2.5.3",
"prettier-plugin-tailwindcss": "^0.6.3",
"publint": "^0.2.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "catalog:react",
"react-dom": "catalog:react",
"rimraf": "6.0.1",
"statuses": "^1.4.0",
"tree-kill": "^1.2.2",
"ts-jest": "^29.0.3",
"tsup": "^8.0.1",
"tsup": "catalog:repo",
"turbo": "^2.0.14",
"turbo-ignore": "^2.0.6",
"typescript": "^5.6.3",
"typescript": "catalog:repo",
"verdaccio": "^5.26.3",
"vitest": "2.1.4",
"zx": "^7.2.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
},
"devDependencies": {
"@clerk/eslint-config-custom": "workspace:*",
"react": "18.3.1",
"typescript": "*"
"react": "catalog:react",
"typescript": "catalog:repo"
},
"peerDependencies": {
"astro": "^3.2.0 || ^4.0.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"@clerk/types": "workspace:*",
"cookie": "0.7.0",
"snakecase-keys": "5.4.4",
"tslib": "2.4.1"
"tslib": "catalog:repo"
},
"devDependencies": {
"@clerk/eslint-config-custom": "workspace:*",
Expand All @@ -105,8 +105,8 @@
"@types/node": "^18.19.33",
"msw": "2.6.4",
"npm-run-all": "^4.1.5",
"tsup": "*",
"typescript": "*",
"tsup": "catalog:repo",
"typescript": "catalog:repo",
"vitest-environment-miniflare": "2.14.4"
},
"engines": {
Expand Down
8 changes: 4 additions & 4 deletions packages/chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@
"@clerk/eslint-config-custom": "workspace:*",
"@types/chrome": "*",
"@types/node": "^18.19.33",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"@types/webextension-polyfill": "^0.10.7",
"tsup": "*",
"tsup": "catalog:repo",
"type-fest": "^4.8.3",
"typescript": "*"
"typescript": "catalog:repo"
},
"peerDependencies": {
"react": ">=18",
Expand Down
6 changes: 3 additions & 3 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@
"@rspack/core": "^1.0.14",
"@rspack/plugin-react-refresh": "^1.0.0",
"@svgr/webpack": "^6.2.1",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"@types/webpack-dev-server": "^4.7.2",
"@types/webpack-env": "^1.16.4",
"react-refresh": "^0.14.0",
"react-refresh-typescript": "^2.0.5",
"terser-webpack-plugin": "^5.3.10",
"ts-loader": "^9.3.0",
"typescript": "*",
"typescript": "catalog:repo",
"webpack-merge": "^5.9.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"devDependencies": {
"@clerk/eslint-config-custom": "workspace:*",
"@types/node": "^20.14.8",
"typescript": "*"
"typescript": "catalog:repo"
},
"engines": {
"node": ">=18.17.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
},
"devDependencies": {
"@types/node": "^18.19.33",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"autoprefixer": "^10.4.20",
"eslint": "^8",
"eslint-config-next": "14.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@
"@clerk/eslint-config-custom": "workspace:*",
"@statelyai/inspect": "^0.4.0",
"@types/node": "^18.19.33",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"concurrently": "^8.2.2",
"next": "^14.2.10",
"tslib": "2.4.1",
"tsup": "*",
"tslib": "catalog:repo",
"tsup": "catalog:repo",
"type-fest": "^4.9.0",
"typescript": "*"
"typescript": "catalog:repo"
},
"peerDependencies": {
"next": "^13.5.4 || ^14.0.3 || ^15",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"eslint-plugin-unused-imports": "^3.2.0"
},
"peerDependencies": {
"typescript": "*"
"typescript": "catalog:repo"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@
"@clerk/types": "workspace:*",
"base-64": "^1.0.0",
"react-native-url-polyfill": "2.0.0",
"tslib": "2.4.1"
"tslib": "catalog:repo"
},
"devDependencies": {
"@clerk/eslint-config-custom": "workspace:*",
"@clerk/expo-passkeys": "workspace:*",
"@types/base-64": "^1.0.2",
"@types/node": "^20.11.24",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"expo-auth-session": "^5.4.0",
"expo-local-authentication": "^13.8.0",
"expo-secure-store": "^12.8.1",
"expo-web-browser": "^12.8.2",
"react-native": "^0.73.9",
"typescript": "*"
"typescript": "catalog:repo"
},
"peerDependencies": {
"@clerk/expo-passkeys": ">=0.0.6",
Expand Down
6 changes: 3 additions & 3 deletions packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@
"@clerk/backend": "workspace:^",
"@clerk/shared": "workspace:^",
"@clerk/types": "workspace:^",
"tslib": "2.4.1"
"tslib": "catalog:repo"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^18.19.33",
"@types/supertest": "^6.0.2",
"express": "^4.20.0",
"supertest": "^6.3.4",
"tsup": "*",
"typescript": "*"
"tsup": "catalog:repo",
"typescript": "catalog:repo"
},
"peerDependencies": {
"express": "^4.17.0 || ^5.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"@clerk/eslint-config-custom": "workspace:*",
"@types/node": "^20.14.8",
"fastify": "^5.0.0",
"tsup": "*",
"typescript": "*"
"tsup": "catalog:repo",
"typescript": "catalog:repo"
},
"peerDependencies": {
"fastify": ">=5"
Expand Down
4 changes: 2 additions & 2 deletions packages/localizations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
},
"devDependencies": {
"@clerk/eslint-config-custom": "workspace:*",
"tsup": "*",
"typescript": "*"
"tsup": "catalog:repo",
"typescript": "catalog:repo"
},
"engines": {
"node": ">=18.17.0"
Expand Down
6 changes: 2 additions & 4 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,14 @@
"crypto-js": "4.2.0",
"ezheaders": "0.1.0",
"server-only": "0.0.1",
"tslib": "2.4.1"
"tslib": "catalog:repo"
},
"devDependencies": {
"@clerk/eslint-config-custom": "workspace:*",
"@types/crypto-js": "4.2.2",
"@types/node": "^18.19.33",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"next": "^14.2.10",
"typescript": "*"
"typescript": "catalog:repo"
},
"peerDependencies": {
"next": "^13.5.4 || ^14.0.3 || ^15.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@
"publish:local": "pnpm dlx yalc push --replace --sig"
},
"dependencies": {
"@clerk/backend": "1.17.0",
"@clerk/shared": "2.15.0",
"@clerk/types": "4.34.0",
"@clerk/vue": "0.0.5",
"@clerk/backend": "workspace:*",
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"@clerk/vue": "workspace:*",
"@nuxt/kit": "^3.14.159",
"@nuxt/schema": "^3.14.159",
"h3": "^1.13.0"
},
"devDependencies": {
"nuxt": "^3.14.159",
"typescript": "*"
"typescript": "catalog:repo"
},
"engines": {
"node": ">=18.17.0"
Expand Down
6 changes: 2 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,15 @@
"dependencies": {
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"tslib": "2.4.1"
"tslib": "catalog:repo"
},
"devDependencies": {
"@clerk/eslint-config-custom": "workspace:*",
"@clerk/localizations": "workspace:*",
"@clerk/themes": "workspace:*",
"@types/node": "^18.19.33",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/semver": "^7.5.8",
"typescript": "*"
"typescript": "catalog:repo"
},
"peerDependencies": {
"react": "^18 || ^19.0.0-0",
Expand Down
8 changes: 4 additions & 4 deletions packages/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"cookie": "0.7.0",
"tslib": "2.4.1"
"tslib": "catalog:repo"
},
"devDependencies": {
"@clerk/eslint-config-custom": "workspace:*",
"@remix-run/react": "^2.0.0",
"@remix-run/server-runtime": "^2.0.0",
"@types/cookie": "^0.6.0",
"@types/node": "^18.19.33",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"typescript": "*"
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"typescript": "catalog:repo"
},
"peerDependencies": {
"@remix-run/react": "^2.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@
"@clerk/backend": "workspace:*",
"@clerk/shared": "workspace:*",
"@clerk/types": "workspace:*",
"tslib": "2.4.1"
"tslib": "catalog:repo"
},
"devDependencies": {
"@clerk/eslint-config-custom": "workspace:*",
"@types/express": "^4.17.21",
"@types/node": "^18.19.33",
"nock": "^13.0.7",
"npm-run-all": "^4.1.5",
"tsup": "*",
"typescript": "*"
"tsup": "catalog:repo",
"typescript": "catalog:repo"
},
"engines": {
"node": ">=18.17.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
"@types/node": "^18.19.33",
"cross-fetch": "^4.0.0",
"esbuild": "0.20.2",
"tsup": "*",
"typescript": "*"
"tsup": "catalog:repo",
"typescript": "catalog:repo"
},
"peerDependencies": {
"react": "^18 || ^19.0.0-0",
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss-transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"postcss-value-parser": "^4.2.0",
"recast": "^0.23.7",
"tailwindcss": "^3.4.3",
"tslib": "2.4.1"
"tslib": "catalog:repo"
}
}
Loading

0 comments on commit dd09050

Please sign in to comment.