Skip to content

Commit f7d98cc

Browse files
committed
package scripts
1 parent 1e3d107 commit f7d98cc

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"dev": "run-p -r 'dev:*'",
2121
"dev:backend": "convex dev --typecheck-components",
2222
"dev:frontend": "cd example && vite --clearScreen false",
23-
"dev:build": "npx chokidar 'tsconfig*.json' 'src/**/*.ts' -i '**/*.test.ts' -c 'npx convex codegen --component ./src/component && npm run build' --initial",
23+
"dev:build": "chokidar 'tsconfig*.json' 'src/**/*.ts' -i '**/*.test.ts' -c 'convex codegen --component-dir ./src/component && npm run build' --initial",
2424
"predev": "npm run dev:backend -- --until-success",
2525
"clean": "rm -rf dist *.tsbuildinfo",
2626
"build": "tsc --project ./tsconfig.build.json",
2727
"typecheck": "tsc --noEmit && tsc -p example && tsc -p example/convex",
28-
"lint": "eslint src && eslint example",
28+
"lint": "eslint src",
2929
"all": "run-p -r 'dev:*' 'test:watch'",
3030
"test": "vitest run --typecheck",
3131
"test:watch": "vitest --typecheck --clearScreen false",

src/client/index.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import type {
2-
Expand,
3-
FunctionReference,
42
GenericDataModel,
53
GenericMutationCtx,
64
GenericQueryCtx,
@@ -28,7 +26,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
2826
public component: ComponentApi,
2927
config?: {
3028
logLevel?: LogLevel;
31-
},
29+
}
3230
) {
3331
this.component = component;
3432
this.config = {
@@ -44,7 +42,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
4442
*/
4543
recordToken(
4644
ctx: RunMutationCtx,
47-
args: { userId: UserType; pushToken: string },
45+
args: { userId: UserType; pushToken: string }
4846
): Promise<null> {
4947
return ctx.runMutation(this.component.public.recordPushNotificationToken, {
5048
...args,
@@ -94,7 +92,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
9492
userId: UserType;
9593
notification: NotificationFields;
9694
allowUnregisteredTokens?: boolean;
97-
},
95+
}
9896
) {
9997
return ctx.runMutation(this.component.public.sendPushNotification, {
10098
...args,
@@ -117,7 +115,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
117115
notification: NotificationFields;
118116
}>;
119117
allowUnregisteredTokens?: boolean;
120-
},
118+
}
121119
) {
122120
return ctx.runMutation(this.component.public.sendPushNotificationBatch, {
123121
...args,
@@ -141,7 +139,7 @@ export class PushNotifications<UserType extends string = GenericId<"users">> {
141139
*/
142140
getNotificationsForUser(
143141
ctx: RunQueryCtx,
144-
args: { userId: UserType; limit?: number },
142+
args: { userId: UserType; limit?: number }
145143
) {
146144
return ctx.runQuery(this.component.public.getNotificationsForUser, {
147145
...args,

0 commit comments

Comments
 (0)