Skip to content

Commit 958784d

Browse files
committed
chore: update @omnidotdev/providers to f1e7db9, fix knip config
Add entry point and drizzle ignores to knip config. Update pre-commit hook to respect knipignore tags.
1 parent 38939d2 commit 958784d

6 files changed

Lines changed: 10 additions & 5 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
bun knip
1+
bun knip --tags=-knipignore
22
bun biome check --write --staged --no-errors-on-unmatched src
33
bun tsc --noEmit

bun.lock

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

knip.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import type { KnipConfig } from "knip";
55
* @see https://knip.dev/overview/configuration
66
*/
77
const knipConfig: KnipConfig = {
8-
project: ["src/**/*.ts", "src/**/*.tsx"],
8+
entry: ["src/server.ts", "src/scripts/**/*.ts"],
9+
project: ["src/**/*.ts"],
10+
ignore: ["src/lib/config/drizzle.config.ts"],
11+
ignoreDependencies: ["drizzle-kit"],
912
};
1013

1114
export default knipConfig;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@elysiajs/cors": "^1.4.1",
2323
"@elysiajs/graphql-yoga": "^1.4.0",
2424
"@graphql-yoga/plugin-disable-introspection": "^2.19.0",
25-
"@omnidotdev/providers": "github:omnidotdev/providers#c82b8ad",
25+
"@omnidotdev/providers": "github:omnidotdev/providers#f1e7db9",
2626
"drizzle-orm": "^0.45.1",
2727
"elysia": "^1.4.21",
2828
"elysia-rate-limit": "^4.5.0",

src/lib/auth/jwt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { env } from "../config/env";
44
// JWKS for verifying tokens from HIDRA
55
const jwks = createRemoteJWKSet(new URL(`${env.authBaseUrl}/jwks`));
66

7+
/** @knipignore */
78
export interface TokenPayload {
89
sub: string; // User identity provider ID
910
email?: string;

src/lib/providers/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const events = createEventsProvider(
1818
: {},
1919
);
2020

21+
/** @knipignore */
2122
export const flags = createFlagProvider(
2223
env.flagsApiHost
2324
? {

0 commit comments

Comments
 (0)