Skip to content

Commit

Permalink
chore(repo): add explicit typecheck script
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekradko committed Dec 13, 2024
1 parent e7476f0 commit 214780d
Show file tree
Hide file tree
Showing 27 changed files with 52 additions and 23 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"test:integration:tanstack-start": "E2E_APP_ID=tanstack.start pnpm test:integration:base --grep @tanstack-start",
"test:integration:vue": "E2E_APP_ID=vue.vite pnpm test:integration:base --grep @vue",
"turbo:clean": "turbo daemon clean",
"typecheck": "FORCE_COLOR=1 turbo typecheck",
"version-packages": "changeset version && pnpm install --lockfile-only --engine-strict=false",
"version-packages:canary": "./scripts/canary.mjs",
"version-packages:snapshot": "./scripts/snapshot.mjs",
Expand Down
3 changes: 2 additions & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
"lint": "eslint src/",
"lint:attw": "attw --pack . --ignore-rules no-resolution cjs-resolves-to-esm internal-resolution-error",
"lint:publint": "pnpm copy:components && publint",
"publish:local": "pnpm yalc push --replace --sig"
"publish:local": "pnpm yalc push --replace --sig",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
"test": "run-s test:node test:edge-runtime test:cloudflare-miniflare",
"test:node": "vitest --environment node",
"test:edge-runtime": "vitest --environment edge-runtime",
"test:cloudflare-miniflare": "vitest --environment miniflare"
"test:cloudflare-miniflare": "vitest --environment miniflare",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/shared": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%",
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/clerk-js": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%",
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html",
"typecheck": "tsc --noEmit",
"watch": "rspack build --config rspack.config.js --env production --watch"
},
"browserslist": "last 2 years, Safari > 12, iOS > 12",
Expand Down
3 changes: 2 additions & 1 deletion packages/elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"lint:attw": "attw --pack . --ignore-rules no-resolution",
"lint:publint": "publint",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr"
"test:cache:clear": "jest --clearCache --useStderr",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/clerk-react": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/expo-passkeys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"lint": "eslint src/",
"open:android": "open -a \"Android Studio\" example/android",
"open:ios": "xed example/ios",
"publish:local": "pnpm yalc push --replace --sig"
"publish:local": "pnpm yalc push --replace --sig",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/shared": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"dev:publish": "pnpm dev -- --env.publish",
"lint": "eslint src/",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest"
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/clerk-js": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"publish:local": "pnpm yalc push --replace --sig",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%"
"test:ci": "jest --maxWorkers=70%",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr"
"test:cache:clear": "jest --clearCache --useStderr",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"lint:attw": "attw --pack . --ignore-rules no-resolution unexpected-module-syntax",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest"
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ describe('clerkMiddleware(params)', () => {

describe('debug', () => {
beforeEach(() => {
global.console.log.mockClear();
vi.mocked(global.console.log).mockClear();
});

it('outputs debug logs when used with only params', async () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"lint:attw": "attw --pack . --ignore-rules no-resolution cjs-resolves-to-esm",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest"
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"lint": "eslint src/",
"lint:attw": "attw --pack . --ignore-rules cjs-resolves-to-esm",
"lint:publint": "publint",
"publish:local": "pnpm dlx yalc push --replace --sig"
"publish:local": "pnpm dlx yalc push --replace --sig",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"lint:attw": "attw --pack .",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest"
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/shared": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/isomorphicClerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
}
};

// @ts-expect-error
authenticateWithOKXWallet = async (params: AuthenticateWithOKXWalletParams): Promise<void> => {
const callback = () => this.clerkjs?.authenticateWithOKXWallet(params);
if (this.clerkjs && this.#loaded) {
Expand Down
3 changes: 2 additions & 1 deletion packages/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
"lint": "eslint src/",
"lint:attw": "attw --pack .",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig"
"publish:local": "pnpm yalc push --replace --sig",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"lint:attw": "attw --pack .",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%"
"test:ci": "jest --maxWorkers=70%",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%",
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/types": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/tailwindcss-transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"test": "jest"
"test": "jest",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@babel/parser": "^7.24.5",
Expand Down
3 changes: 2 additions & 1 deletion packages/tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"lint": "eslint src/",
"lint:attw": "attw --pack . --ignore-rules cjs-resolves-to-esm",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig"
"publish:local": "pnpm yalc push --replace --sig",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"build": "tsup --env.NODE_ENV production",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"lint": "eslint src/"
"lint": "eslint src/",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/backend": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"build": "tsc -p tsconfig.build.json",
"clean": "rimraf ./dist",
"dev": "tsc -p tsconfig.build.json --watch",
"lint": "eslint src/"
"lint": "eslint src/",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/types": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"build": "tsup --env.NODE_ENV production",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"lint": "eslint src/"
"lint": "eslint src/",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"csstype": "3.1.1"
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"bundlewatch": "pnpm dlx bundlewatch --config bundlewatch.config.json",
"dev": "tsup --watch",
"dev:theme-builder": "concurrently \"pnpm dev\" \"cd theme-builder && pnpm dev\"",
"test": "vitest"
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/elements": "workspace:^",
Expand Down
3 changes: 2 additions & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest",
"test:ci": "vitest --maxWorkers=70%"
"test:ci": "vitest --maxWorkers=70%",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@clerk/shared": "workspace:^",
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@
"format:check": {
"outputs": []
},
"typecheck": {
"dependsOn": ["build"],
"outputs": []
},
"//#test:integration:ap-flows": {
"dependsOn": ["@clerk/clerk-js#build", "@clerk/backend#build", "@clerk/nextjs#build"],
"env": ["CLEANUP", "DEBUG", "E2E_*", "INTEGRATION_INSTANCE_KEYS"],
Expand Down

0 comments on commit 214780d

Please sign in to comment.