Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit c7ae743

Browse files
committed
chore: format
1 parent e9c088c commit c7ae743

File tree

8 files changed

+27
-14
lines changed

8 files changed

+27
-14
lines changed

apps/docs/src/app/community/components/npm-package-stats.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ interface NpmPackageStatsProps {
2727

2828
export function NpmPackageStats({ package: pkg }: NpmPackageStatsProps) {
2929
return (
30-
<Card className={cn("overflow-hidden", pkg.isReleased ? "opacity-100" : "opacity-50")}>
30+
<Card
31+
className={cn(
32+
"overflow-hidden",
33+
pkg.isReleased ? "opacity-100" : "opacity-50",
34+
)}
35+
>
3136
<CardHeader className="pb-2">
3237
<div className="flex justify-between items-start">
3338
<div>

apps/docs/src/app/community/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ export default async function CommunityPage() {
7777
isReleased: true,
7878
},
7979
{
80-
name: '@better-auth-kit/app-invite',
81-
description: 'A plugin to invite users to your application',
80+
name: "@better-auth-kit/app-invite",
81+
description: "A plugin to invite users to your application",
8282
downloads: 0,
83-
version: '0',
84-
docs: 'https://better-auth-kit.com/docs/plugins/app-invite',
83+
version: "0",
84+
docs: "https://better-auth-kit.com/docs/plugins/app-invite",
8585
isReleased: true,
86-
}
86+
},
8787
];
8888

8989
for (const pkg of packages) {
@@ -97,7 +97,7 @@ export default async function CommunityPage() {
9797
// sort by downloads
9898
packages = packages.sort((a, b) => b.downloads - a.downloads);
9999
// sort by isReleased
100-
packages = packages.sort((a, b) => b.isReleased ? 1 : -1);
100+
packages = packages.sort((a, b) => (b.isReleased ? 1 : -1));
101101

102102
return (
103103
<div className="w-screen h-screen">

packages/plugins/app-invite/package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@
44
"description": "Invite users to your application and allow them to sign up.",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
7-
"keywords": ["better-auth", "auth", "plugin", "app-invite", "invite", "kit", "signup", "invite-only"],
7+
"keywords": [
8+
"better-auth",
9+
"auth",
10+
"plugin",
11+
"app-invite",
12+
"invite",
13+
"kit",
14+
"signup",
15+
"invite-only"
16+
],
817
"license": "MIT",
918
"author": "ping-maxwell",
1019
"files": ["./dist/**/*"],
@@ -15,7 +24,7 @@
1524
},
1625
"scripts": {
1726
"build": "bun build.ts",
18-
"build:dev": "bun build-dev.ts",
27+
"dev": "bun build-dev.ts",
1928
"test": "vitest",
2029
"typecheck": "tsc --noEmit"
2130
},

packages/plugins/app-invite/src/adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ export const getAppInviteAdapter = (
119119
return invitation;
120120
},
121121
};
122-
};
122+
};

packages/plugins/app-invite/src/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ export const isProduction = nodeENV === "production";
5454
export const isDevelopment = nodeENV === "dev" || nodeENV === "development";
5555

5656
/** Detect if `NODE_ENV` environment variable is `test` */
57-
export const isTest = nodeENV === "test" || toBoolean(env.TEST);
57+
export const isTest = nodeENV === "test" || toBoolean(env.TEST);

packages/plugins/app-invite/src/error-codes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const APP_INVITE_ERROR_CODES = {
1414
EMAIL_DOMAIN_IS_NOT_IN_WHITELIST: "Email domain is not in whitelist",
1515
} as const;
1616

17-
1817
export const BASE_ERROR_CODES = {
1918
USER_NOT_FOUND: "User not found",
2019
FAILED_TO_CREATE_USER: "Failed to create user",

packages/plugins/app-invite/src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ export const appInvitationSchema = z.object({
1919
});
2020

2121
export type AppInvitation = z.infer<typeof appInvitationSchema>;
22-
export type AppInvitationInput = z.input<typeof appInvitationSchema>;
22+
export type AppInvitationInput = z.input<typeof appInvitationSchema>;

packages/plugins/feedback/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"scripts": {
1717
"build": "bun build.ts",
18-
"build:dev": "bun build-dev.ts",
18+
"dev": "bun build-dev.ts",
1919
"test": "vitest",
2020
"typecheck": "tsc --noEmit"
2121
},

0 commit comments

Comments
 (0)