@wwchen/stack 0.6.4 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/dist/auth/better-auth/index.d.ts +2 -305
- package/dist/auth/better-auth/index.js +2 -215
- package/dist/auth/index.d.ts +2 -47
- package/dist/auth/index.js +2 -106
- package/dist/auth/proxy.d.ts +2 -12
- package/dist/auth/proxy.js +2 -37
- package/dist/cli/context.d.ts +5 -0
- package/dist/cli/context.js +3 -0
- package/dist/cli/db.d.ts +3 -0
- package/dist/cli/db.js +26 -0
- package/dist/cli/index.js +13 -1
- package/dist/cli/migrate-suite.d.ts +2 -0
- package/dist/cli/migrate-suite.js +787 -0
- package/dist/connections/index.js +1 -1
- package/dist/connections/table.d.ts +1 -1
- package/dist/db/schema-changes.d.ts +13 -0
- package/dist/db/schema-changes.js +99 -0
- package/dist/mail/index.d.ts +4 -38
- package/dist/mail/index.js +4 -92
- package/dist/next/api.d.ts +1 -2
- package/package.json +15 -9
- package/dist/auth/better-auth/tables.d.ts +0 -628
- package/dist/auth/better-auth/tables.js +0 -67
- package/dist/auth/better-auth/users.d.ts +0 -22
- package/dist/auth/better-auth/users.js +0 -122
- package/dist/auth/safe-next.d.ts +0 -11
- package/dist/auth/safe-next.js +0 -30
- package/dist/auth/types.d.ts +0 -46
- package/dist/auth/types.js +0 -4
- package/dist/http/client-ip.d.ts +0 -6
- package/dist/http/client-ip.js +0 -21
- package/dist/http/rate-limit.d.ts +0 -28
- package/dist/http/rate-limit.js +0 -67
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
|
|
2
|
+
import { safeNext } from "@wwchen/stack-auth";
|
|
2
3
|
import { and, asc, eq } from "drizzle-orm";
|
|
3
|
-
import { safeNext } from "../auth/safe-next.js";
|
|
4
4
|
import { decryptToken, encryptToken, parseEncryptionKey } from "./crypto.js";
|
|
5
5
|
/**
|
|
6
6
|
* Connected accounts: a signed-in person connects an account at another service so the app can work on their behalf. This is deliberately not sign-in — a connection never signs anyone in and never creates a user; people sign in by email.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AuthTables } from "
|
|
1
|
+
import type { AuthTables } from "@wwchen/stack-auth/better-auth";
|
|
2
2
|
/**
|
|
3
3
|
* The `connection` table: an account at another service that a signed-in person connected so the app can work on their behalf. The app re-exports it from its schema next to the auth tables, so drizzle-kit generates it into the app's own migrations.
|
|
4
4
|
*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SQL `drizzle-kit generate` would write for `schema` (the app's `src/db/schema.ts` exports) against the latest migration in `migrationsFolder`: empty when the migrations are current. Only tables in `public` count, as in the template's drizzle config. Assumes that config sets no `casing` (the template's does not): with one, the names here would differ from what `generate` writes.
|
|
3
|
+
*/
|
|
4
|
+
export declare function pendingStatements(schema: Record<string, unknown>, migrationsFolder: string): Promise<string[]>;
|
|
5
|
+
/**
|
|
6
|
+
* The statements in a drizzle-kit migration that an old deployment cannot survive. The old deployment keeps serving while the build migrates, so a migration may only add what the old code ignores. Flagged:
|
|
7
|
+
* - each `DROP` (a table, column, index, constraint, default…), except `DROP NOT NULL`, which only loosens a column;
|
|
8
|
+
* - each `RENAME`;
|
|
9
|
+
* - `ADD COLUMN … NOT NULL` without a default: the old code's inserts leave it empty;
|
|
10
|
+
* - `SET NOT NULL` and `SET DATA TYPE` on an existing column: the old code's writes may no longer fit;
|
|
11
|
+
* - `ADD CONSTRAINT` (any kind) and `CREATE UNIQUE INDEX` on a table the same migration did not create: they can reject the old code's inserts. drizzle-kit writes a new table's foreign keys as separate `ADD CONSTRAINT` statements, and those pass.
|
|
12
|
+
*/
|
|
13
|
+
export declare function contractStatements(sql: string): string[];
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
/** The schemas an app's migrations cover: the template's `schemaFilter`. */
|
|
4
|
+
const SCHEMA_FILTER = ["public"];
|
|
5
|
+
/** drizzle-kit is an optional peer: only drift detection loads it, so an app without it can still use the rest of the stack. */
|
|
6
|
+
async function loadDrizzleKit() {
|
|
7
|
+
try {
|
|
8
|
+
return await import("drizzle-kit/api");
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
throw new Error("drizzle-kit could not be loaded: install drizzle-kit 0.31.11 as a devDependency of the app and run `pnpm install`.", { cause: error });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/** The snapshot of the migration the journal lists last (drizzle-kit names it by the tag's prefix), or undefined when nothing has been generated. */
|
|
15
|
+
async function latestSnapshot(migrationsFolder) {
|
|
16
|
+
let journal;
|
|
17
|
+
try {
|
|
18
|
+
journal = JSON.parse(await readFile(join(migrationsFolder, "meta", "_journal.json"), "utf8"));
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
if (error.code === "ENOENT")
|
|
22
|
+
return undefined;
|
|
23
|
+
throw error;
|
|
24
|
+
}
|
|
25
|
+
const last = journal.entries?.at(-1);
|
|
26
|
+
if (!last)
|
|
27
|
+
return undefined;
|
|
28
|
+
const file = join(migrationsFolder, "meta", `${last.tag.split("_")[0]}_snapshot.json`);
|
|
29
|
+
return JSON.parse(await readFile(file, "utf8"));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The SQL `drizzle-kit generate` would write for `schema` (the app's `src/db/schema.ts` exports) against the latest migration in `migrationsFolder`: empty when the migrations are current. Only tables in `public` count, as in the template's drizzle config. Assumes that config sets no `casing` (the template's does not): with one, the names here would differ from what `generate` writes.
|
|
33
|
+
*/
|
|
34
|
+
export async function pendingStatements(schema, migrationsFolder) {
|
|
35
|
+
const kit = await loadDrizzleKit();
|
|
36
|
+
const current = kit.generateDrizzleJson(schema, undefined, SCHEMA_FILTER);
|
|
37
|
+
const previous = (await latestSnapshot(migrationsFolder)) ??
|
|
38
|
+
kit.generateDrizzleJson({}, undefined, SCHEMA_FILTER);
|
|
39
|
+
try {
|
|
40
|
+
return await kit.generateMigration(previous, current);
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
// drizzle-kit asks whether a dropped and an added table or column are a rename, and cannot ask without a terminal.
|
|
44
|
+
if (error instanceof Error && /Interactive prompts require a TTY/.test(error.message)) {
|
|
45
|
+
throw new Error("the schema both drops and adds a table or column, and only a person can say whether it is a rename: run `drizzle-kit generate` in a terminal.", { cause: error });
|
|
46
|
+
}
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/** Quoted identifiers and string literals, blanked so a name or value never reads as a keyword. */
|
|
51
|
+
const QUOTED = /"(?:[^"]|"")*"|'(?:[^']|'')*'/g;
|
|
52
|
+
/** A table name as drizzle-kit writes it: `"t"` or `"schema"."t"`, quoted or bare. */
|
|
53
|
+
const NAME = String.raw `(?:"(?:[^"]|"")*"|\w+)`;
|
|
54
|
+
const TABLE = String.raw `(${NAME}(?:\s*\.\s*${NAME})?)`;
|
|
55
|
+
const CREATE_TABLE = new RegExp(String.raw `^CREATE\s+TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?${TABLE}`, "i");
|
|
56
|
+
const ADD_CONSTRAINT = new RegExp(String.raw `^ALTER\s+TABLE\s+(?:ONLY\s+)?${TABLE}\s+ADD\s+CONSTRAINT\b`, "i");
|
|
57
|
+
const UNIQUE_INDEX = new RegExp(String.raw `^CREATE\s+UNIQUE\s+INDEX\b[\s\S]*?\bON\s+(?:ONLY\s+)?${TABLE}`, "i");
|
|
58
|
+
/** One spelling per table: unquoted, and without the default `public.` schema. */
|
|
59
|
+
function tableKey(name) {
|
|
60
|
+
const parts = name
|
|
61
|
+
.split(/\s*\.\s*/)
|
|
62
|
+
.map((part) => part.replace(/^"|"$/g, "").replaceAll('""', '"'));
|
|
63
|
+
if (parts.length === 2 && parts[0] === "public")
|
|
64
|
+
parts.shift();
|
|
65
|
+
return parts.join(".");
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The statements in a drizzle-kit migration that an old deployment cannot survive. The old deployment keeps serving while the build migrates, so a migration may only add what the old code ignores. Flagged:
|
|
69
|
+
* - each `DROP` (a table, column, index, constraint, default…), except `DROP NOT NULL`, which only loosens a column;
|
|
70
|
+
* - each `RENAME`;
|
|
71
|
+
* - `ADD COLUMN … NOT NULL` without a default: the old code's inserts leave it empty;
|
|
72
|
+
* - `SET NOT NULL` and `SET DATA TYPE` on an existing column: the old code's writes may no longer fit;
|
|
73
|
+
* - `ADD CONSTRAINT` (any kind) and `CREATE UNIQUE INDEX` on a table the same migration did not create: they can reject the old code's inserts. drizzle-kit writes a new table's foreign keys as separate `ADD CONSTRAINT` statements, and those pass.
|
|
74
|
+
*/
|
|
75
|
+
export function contractStatements(sql) {
|
|
76
|
+
const statements = sql
|
|
77
|
+
.split("--> statement-breakpoint")
|
|
78
|
+
.map((statement) => statement.trim())
|
|
79
|
+
.filter(Boolean);
|
|
80
|
+
const created = new Set(statements.flatMap((statement) => {
|
|
81
|
+
const name = CREATE_TABLE.exec(statement)?.[1];
|
|
82
|
+
return name ? [tableKey(name)] : [];
|
|
83
|
+
}));
|
|
84
|
+
return statements.filter((statement) => {
|
|
85
|
+
const code = statement.replace(QUOTED, '""');
|
|
86
|
+
if (/\bDROP\b(?!\s+NOT\s+NULL\b)/i.test(code))
|
|
87
|
+
return true;
|
|
88
|
+
if (/\bRENAME\b/i.test(code))
|
|
89
|
+
return true;
|
|
90
|
+
if (/\bSET\s+(NOT\s+NULL|DATA\s+TYPE)\b/i.test(code))
|
|
91
|
+
return true;
|
|
92
|
+
const constrained = (ADD_CONSTRAINT.exec(statement) ?? UNIQUE_INDEX.exec(statement))?.[1];
|
|
93
|
+
if (constrained !== undefined && !created.has(tableKey(constrained)))
|
|
94
|
+
return true;
|
|
95
|
+
return (/\bADD\s+COLUMN\b/i.test(code) &&
|
|
96
|
+
/\bNOT\s+NULL\b/i.test(code) &&
|
|
97
|
+
!/\b(DEFAULT|GENERATED|SERIAL|SMALLSERIAL|BIGSERIAL)\b/i.test(code));
|
|
98
|
+
});
|
|
99
|
+
}
|
package/dist/mail/index.d.ts
CHANGED
|
@@ -1,38 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
export type Mail = {
|
|
7
|
-
to: string;
|
|
8
|
-
subject: string;
|
|
9
|
-
text: string;
|
|
10
|
-
};
|
|
11
|
-
export type Mailer = {
|
|
12
|
-
send(m: Mail): Promise<void>;
|
|
13
|
-
};
|
|
14
|
-
export type MailerOptions = {
|
|
15
|
-
mode: "resend";
|
|
16
|
-
apiKey: string;
|
|
17
|
-
from: string;
|
|
18
|
-
fetch?: typeof fetch;
|
|
19
|
-
} | {
|
|
20
|
-
mode: "sink";
|
|
21
|
-
sinkPath: string;
|
|
22
|
-
};
|
|
23
|
-
export declare function createMailer(opts: MailerOptions): Mailer;
|
|
24
|
-
/**
|
|
25
|
-
* Production sends through Resend; every other environment uses the sink.
|
|
26
|
-
*
|
|
27
|
-
* A production run without `RESEND_API_KEY` or `EMAIL_FROM` gets a mailer that refuses every send, naming the missing variable, rather than a throw here: `next build` evaluates the app's mail module with `NODE_ENV=production` and no secrets (a build skips env validation), and must not fail on it. A booted production app never gets this far without them: the stack's env requires both in production.
|
|
28
|
-
*/
|
|
29
|
-
export declare function mailerFromEnv(env: {
|
|
30
|
-
NODE_ENV: string;
|
|
31
|
-
RESEND_API_KEY?: string | undefined;
|
|
32
|
-
EMAIL_FROM?: string | undefined;
|
|
33
|
-
MAGIC_LINK_SINK_PATH: string;
|
|
34
|
-
}): Mailer;
|
|
35
|
-
/** How many links the sink holds now; take it before the request that should add one. */
|
|
36
|
-
export declare function countSinkLines(sinkPath: string): number;
|
|
37
|
-
/** The first link after line `afterLine` (a count from `countSinkLines`), polling until `timeoutMs`. */
|
|
38
|
-
export declare function waitForMagicLink(sinkPath: string, afterLine: number, timeoutMs?: number): Promise<string>;
|
|
1
|
+
import { waitForLink } from "@wwchen/stack-notify";
|
|
2
|
+
export * from "@wwchen/stack-notify";
|
|
3
|
+
/** @deprecated Use `waitForMagicLink` from `@wwchen/stack-auth`, or `waitForLink` for any other link. */
|
|
4
|
+
export declare const waitForMagicLink: typeof waitForLink;
|
package/dist/mail/index.js
CHANGED
|
@@ -1,92 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const { sinkPath } = opts;
|
|
6
|
-
return {
|
|
7
|
-
async send(m) {
|
|
8
|
-
const url = m.text.match(/https?:\/\/\S+/)?.[0];
|
|
9
|
-
if (url)
|
|
10
|
-
appendFileSync(sinkPath, `${url}\n`, "utf8");
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const { apiKey, from } = opts;
|
|
15
|
-
const doFetch = opts.fetch ?? fetch;
|
|
16
|
-
return {
|
|
17
|
-
async send(m) {
|
|
18
|
-
const response = await doFetch(RESEND_ENDPOINT, {
|
|
19
|
-
method: "POST",
|
|
20
|
-
headers: {
|
|
21
|
-
authorization: `Bearer ${apiKey}`,
|
|
22
|
-
"content-type": "application/json",
|
|
23
|
-
},
|
|
24
|
-
body: JSON.stringify({ from, to: m.to, subject: m.subject, text: m.text }),
|
|
25
|
-
// A hung Resend must not hold the sign-in request open.
|
|
26
|
-
signal: AbortSignal.timeout(10_000),
|
|
27
|
-
});
|
|
28
|
-
if (!response.ok) {
|
|
29
|
-
throw new Error(`Resend refused the message: ${response.status}${await refusalReason(response)}`);
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Production sends through Resend; every other environment uses the sink.
|
|
36
|
-
*
|
|
37
|
-
* A production run without `RESEND_API_KEY` or `EMAIL_FROM` gets a mailer that refuses every send, naming the missing variable, rather than a throw here: `next build` evaluates the app's mail module with `NODE_ENV=production` and no secrets (a build skips env validation), and must not fail on it. A booted production app never gets this far without them: the stack's env requires both in production.
|
|
38
|
-
*/
|
|
39
|
-
export function mailerFromEnv(env) {
|
|
40
|
-
if (env.NODE_ENV !== "production") {
|
|
41
|
-
return createMailer({ mode: "sink", sinkPath: env.MAGIC_LINK_SINK_PATH });
|
|
42
|
-
}
|
|
43
|
-
const { RESEND_API_KEY: apiKey, EMAIL_FROM: from } = env;
|
|
44
|
-
if (!apiKey || !from) {
|
|
45
|
-
const missing = apiKey ? "EMAIL_FROM" : "RESEND_API_KEY";
|
|
46
|
-
return {
|
|
47
|
-
async send() {
|
|
48
|
-
throw new Error(`${missing} is required in production`);
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
return createMailer({ mode: "resend", apiKey, from });
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Resend's `{ name, message }` as " name: message", or "" for any other body. The caller logs it, and Resend's message can echo the recipient, so every email address in it is redacted.
|
|
56
|
-
*/
|
|
57
|
-
async function refusalReason(response) {
|
|
58
|
-
try {
|
|
59
|
-
const body = await response.json();
|
|
60
|
-
if (typeof body !== "object" || body === null)
|
|
61
|
-
return "";
|
|
62
|
-
const { name, message } = body;
|
|
63
|
-
if (typeof name !== "string" || typeof message !== "string")
|
|
64
|
-
return "";
|
|
65
|
-
const redacted = message.replace(/[^\s()<>@,;:"]+@[^\s()<>@,;:"]+/g, "[email]").slice(0, 300);
|
|
66
|
-
return ` ${name}: ${redacted}`;
|
|
67
|
-
}
|
|
68
|
-
catch {
|
|
69
|
-
return "";
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function sinkLines(sinkPath) {
|
|
73
|
-
if (!existsSync(sinkPath))
|
|
74
|
-
return [];
|
|
75
|
-
return readFileSync(sinkPath, "utf8").split("\n").filter(Boolean);
|
|
76
|
-
}
|
|
77
|
-
/** How many links the sink holds now; take it before the request that should add one. */
|
|
78
|
-
export function countSinkLines(sinkPath) {
|
|
79
|
-
return sinkLines(sinkPath).length;
|
|
80
|
-
}
|
|
81
|
-
/** The first link after line `afterLine` (a count from `countSinkLines`), polling until `timeoutMs`. */
|
|
82
|
-
export async function waitForMagicLink(sinkPath, afterLine, timeoutMs = 10_000) {
|
|
83
|
-
const deadline = Date.now() + timeoutMs;
|
|
84
|
-
for (;;) {
|
|
85
|
-
const line = sinkLines(sinkPath)[afterLine];
|
|
86
|
-
if (line)
|
|
87
|
-
return line;
|
|
88
|
-
if (Date.now() >= deadline)
|
|
89
|
-
throw new Error(`No magic link reached ${sinkPath}`);
|
|
90
|
-
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
91
|
-
}
|
|
92
|
-
}
|
|
1
|
+
import { waitForLink } from "@wwchen/stack-notify";
|
|
2
|
+
export * from "@wwchen/stack-notify";
|
|
3
|
+
/** @deprecated Use `waitForMagicLink` from `@wwchen/stack-auth`, or `waitForLink` for any other link. */
|
|
4
|
+
export const waitForMagicLink = waitForLink;
|
package/dist/next/api.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { StackAuth } from "
|
|
2
|
-
import type { Session } from "../auth/types.ts";
|
|
1
|
+
import type { Session, StackAuth } from "@wwchen/stack-auth";
|
|
3
2
|
/**
|
|
4
3
|
* The shell every API route runs in: session, admin check, the request guards, the handler, and the envelope for whatever it throws. Written once so route files cannot drift on it.
|
|
5
4
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwchen/stack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Shared Next.js, Neon, Better Auth, Resend and lew-ds building blocks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -95,14 +95,10 @@
|
|
|
95
95
|
},
|
|
96
96
|
"./blocks/*": "./blocks/*"
|
|
97
97
|
},
|
|
98
|
-
"scripts": {
|
|
99
|
-
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json && node scripts/copy-css.mjs",
|
|
100
|
-
"test": "vitest run",
|
|
101
|
-
"typecheck": "tsc --noEmit"
|
|
102
|
-
},
|
|
103
98
|
"dependencies": {
|
|
104
99
|
"@vercel/functions": "3.12.0",
|
|
105
|
-
"
|
|
100
|
+
"@wwchen/stack-auth": "0.7.0",
|
|
101
|
+
"@wwchen/stack-notify": "0.7.0",
|
|
106
102
|
"pg": "8.23.1",
|
|
107
103
|
"zod": "4.6.7"
|
|
108
104
|
},
|
|
@@ -113,11 +109,13 @@
|
|
|
113
109
|
"@lew-ds/lds-react": "2.1.0",
|
|
114
110
|
"@lew-ds/open-icons": "1.1.0",
|
|
115
111
|
"@storybook/nextjs-vite": "10.6.2",
|
|
112
|
+
"drizzle-kit": "0.31.11",
|
|
116
113
|
"drizzle-orm": "0.45.4",
|
|
117
114
|
"next": "16.4.6",
|
|
118
115
|
"react": "19.3.1",
|
|
119
116
|
"react-dom": "19.3.1",
|
|
120
|
-
"storybook": "10.6.2"
|
|
117
|
+
"storybook": "10.6.2",
|
|
118
|
+
"typescript": "~6.0.3"
|
|
121
119
|
},
|
|
122
120
|
"peerDependenciesMeta": {
|
|
123
121
|
"@electric-sql/pglite": {
|
|
@@ -129,6 +127,9 @@
|
|
|
129
127
|
"@storybook/nextjs-vite": {
|
|
130
128
|
"optional": true
|
|
131
129
|
},
|
|
130
|
+
"drizzle-kit": {
|
|
131
|
+
"optional": true
|
|
132
|
+
},
|
|
132
133
|
"storybook": {
|
|
133
134
|
"optional": true
|
|
134
135
|
}
|
|
@@ -146,5 +147,10 @@
|
|
|
146
147
|
"tailwindcss": "4.3.3",
|
|
147
148
|
"typescript": "~6.0.3",
|
|
148
149
|
"vitest": "5.0.5"
|
|
150
|
+
},
|
|
151
|
+
"scripts": {
|
|
152
|
+
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json && node scripts/copy-css.mjs",
|
|
153
|
+
"test": "vitest run",
|
|
154
|
+
"typecheck": "tsc --noEmit"
|
|
149
155
|
}
|
|
150
|
-
}
|
|
156
|
+
}
|