@storyshelf/db-mysql 0.0.0-stage → 0.5.3
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/LICENSE +21 -0
- package/README.md +28 -2
- package/dist/ddl.d.mts +8 -0
- package/dist/ddl.mjs +321 -0
- package/dist/ddl.mjs.map +1 -0
- package/dist/drizzle-factory-mysql.mjs +89 -0
- package/dist/drizzle-factory-mysql.mjs.map +1 -0
- package/dist/drizzle-factory.mjs +42 -0
- package/dist/drizzle-factory.mjs.map +1 -0
- package/dist/index.d.mts +25 -0
- package/dist/index.mjs +73 -0
- package/dist/index.mjs.map +1 -0
- package/dist/migrate.mjs +91 -0
- package/dist/migrate.mjs.map +1 -0
- package/dist/planetscale.d.mts +18 -0
- package/dist/planetscale.mjs +12 -0
- package/dist/planetscale.mjs.map +1 -0
- package/dist/schema/baseline.d.mts +197 -0
- package/dist/schema/baseline.mjs +29 -0
- package/dist/schema/baseline.mjs.map +1 -0
- package/dist/schema/build.d.mts +380 -0
- package/dist/schema/build.mjs +39 -0
- package/dist/schema/build.mjs.map +1 -0
- package/dist/schema/capture-attempt.d.mts +445 -0
- package/dist/schema/capture-attempt.mjs +58 -0
- package/dist/schema/capture-attempt.mjs.map +1 -0
- package/dist/schema/comment.d.mts +197 -0
- package/dist/schema/comment.mjs +32 -0
- package/dist/schema/comment.mjs.map +1 -0
- package/dist/schema/content-refs.d.mts +89 -0
- package/dist/schema/content-refs.mjs +22 -0
- package/dist/schema/content-refs.mjs.map +1 -0
- package/dist/schema/label.d.mts +262 -0
- package/dist/schema/label.mjs +36 -0
- package/dist/schema/label.mjs.map +1 -0
- package/dist/schema/member.d.mts +129 -0
- package/dist/schema/member.mjs +23 -0
- package/dist/schema/member.mjs.map +1 -0
- package/dist/schema/notification.d.mts +316 -0
- package/dist/schema/notification.mjs +42 -0
- package/dist/schema/notification.mjs.map +1 -0
- package/dist/schema/project-group-mapping.d.mts +110 -0
- package/dist/schema/project-group-mapping.mjs +21 -0
- package/dist/schema/project-group-mapping.mjs.map +1 -0
- package/dist/schema/project.d.mts +337 -0
- package/dist/schema/project.mjs +35 -0
- package/dist/schema/project.mjs.map +1 -0
- package/dist/schema/snapshot.d.mts +452 -0
- package/dist/schema/snapshot.mjs +47 -0
- package/dist/schema/snapshot.mjs.map +1 -0
- package/dist/schema/status-config.d.mts +143 -0
- package/dist/schema/status-config.mjs +26 -0
- package/dist/schema/status-config.mjs.map +1 -0
- package/dist/schema/token.d.mts +143 -0
- package/dist/schema/token.mjs +27 -0
- package/dist/schema/token.mjs.map +1 -0
- package/dist/schema/user-invite.d.mts +125 -0
- package/dist/schema/user-invite.mjs +28 -0
- package/dist/schema/user-invite.mjs.map +1 -0
- package/dist/schema/user.d.mts +146 -0
- package/dist/schema/user.mjs +25 -0
- package/dist/schema/user.mjs.map +1 -0
- package/dist/schema/webhook.d.mts +143 -0
- package/dist/schema/webhook.mjs +26 -0
- package/dist/schema/webhook.mjs.map +1 -0
- package/dist/schema.d.mts +47 -0
- package/dist/schema.mjs +46 -0
- package/dist/schema.mjs.map +1 -0
- package/dist/tidb.d.mts +16 -0
- package/dist/tidb.mjs +12 -0
- package/dist/tidb.mjs.map +1 -0
- package/package.json +111 -4
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { Build, builds } from "./schema/build.mjs";
|
|
4
|
+
import { CaptureAttempt, CaptureLog, captureAttempts, captureLogs } from "./schema/capture-attempt.mjs";
|
|
5
|
+
import { Baseline, baselines } from "./schema/baseline.mjs";
|
|
6
|
+
import { Comment, comments } from "./schema/comment.mjs";
|
|
7
|
+
import { BuildLabel, LabelType, buildLabels, labelTypes } from "./schema/label.mjs";
|
|
8
|
+
import { ProjectMember, projectMembers } from "./schema/member.mjs";
|
|
9
|
+
import { ProjectGroupMapping, projectGroupMappings } from "./schema/project-group-mapping.mjs";
|
|
10
|
+
import { Project, StorybookMeta, projects } from "./schema/project.mjs";
|
|
11
|
+
import { Snapshot, snapshots } from "./schema/snapshot.mjs";
|
|
12
|
+
import { ProjectStatusConfig, projectStatusConfigs } from "./schema/status-config.mjs";
|
|
13
|
+
import { Token, tokens } from "./schema/token.mjs";
|
|
14
|
+
import { UserInviteToken, userInviteTokens } from "./schema/user-invite.mjs";
|
|
15
|
+
import { User, users } from "./schema/user.mjs";
|
|
16
|
+
import { Webhook, webhooks } from "./schema/webhook.mjs";
|
|
17
|
+
import { NotificationChannel, NotificationSubscription, notificationChannels, notificationSubscriptions } from "./schema/notification.mjs";
|
|
18
|
+
import { ContentRef, contentRefs } from "./schema/content-refs.mjs";
|
|
19
|
+
import { AnyMySqlTable } from "drizzle-orm/mysql-core";
|
|
20
|
+
//#region src/schema/index.d.ts
|
|
21
|
+
/** Full Drizzle schema object passed to the database client. */
|
|
22
|
+
declare const schema: {
|
|
23
|
+
projects: AnyMySqlTable;
|
|
24
|
+
projectStatusConfigs: AnyMySqlTable;
|
|
25
|
+
builds: AnyMySqlTable;
|
|
26
|
+
captureAttempts: AnyMySqlTable;
|
|
27
|
+
captureLogs: AnyMySqlTable;
|
|
28
|
+
snapshots: AnyMySqlTable;
|
|
29
|
+
baselines: AnyMySqlTable;
|
|
30
|
+
comments: AnyMySqlTable;
|
|
31
|
+
labelTypes: AnyMySqlTable;
|
|
32
|
+
buildLabels: AnyMySqlTable;
|
|
33
|
+
tokens: AnyMySqlTable;
|
|
34
|
+
webhooks: AnyMySqlTable;
|
|
35
|
+
notificationChannels: AnyMySqlTable;
|
|
36
|
+
notificationSubscriptions: AnyMySqlTable;
|
|
37
|
+
users: AnyMySqlTable;
|
|
38
|
+
userInviteTokens: AnyMySqlTable;
|
|
39
|
+
projectMembers: AnyMySqlTable;
|
|
40
|
+
projectGroupMappings: AnyMySqlTable;
|
|
41
|
+
contentRefs: AnyMySqlTable;
|
|
42
|
+
};
|
|
43
|
+
/** The full database schema type. */
|
|
44
|
+
type Schema = typeof schema;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { type Baseline, type Build, type BuildLabel, type CaptureAttempt, type CaptureLog, type Comment, type ContentRef, type LabelType, type NotificationChannel, type NotificationSubscription, type Project, type ProjectGroupMapping, type ProjectMember, type ProjectStatusConfig, Schema, type Snapshot, type StorybookMeta, type Token, type User, type UserInviteToken, type Webhook, baselines, buildLabels, builds, captureAttempts, captureLogs, comments, contentRefs, labelTypes, notificationChannels, notificationSubscriptions, projectGroupMappings, projectMembers, projectStatusConfigs, projects, schema, snapshots, tokens, userInviteTokens, users, webhooks };
|
|
47
|
+
//# sourceMappingURL=schema.d.mts.map
|
package/dist/schema.mjs
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
import { projects } from "./schema/project.mjs";
|
|
5
|
+
import { baselines } from "./schema/baseline.mjs";
|
|
6
|
+
import { builds } from "./schema/build.mjs";
|
|
7
|
+
import { captureAttempts, captureLogs } from "./schema/capture-attempt.mjs";
|
|
8
|
+
import { snapshots } from "./schema/snapshot.mjs";
|
|
9
|
+
import { users } from "./schema/user.mjs";
|
|
10
|
+
import { comments } from "./schema/comment.mjs";
|
|
11
|
+
import { contentRefs } from "./schema/content-refs.mjs";
|
|
12
|
+
import { buildLabels, labelTypes } from "./schema/label.mjs";
|
|
13
|
+
import { projectMembers } from "./schema/member.mjs";
|
|
14
|
+
import { notificationChannels, notificationSubscriptions } from "./schema/notification.mjs";
|
|
15
|
+
import { projectGroupMappings } from "./schema/project-group-mapping.mjs";
|
|
16
|
+
import { projectStatusConfigs } from "./schema/status-config.mjs";
|
|
17
|
+
import { tokens } from "./schema/token.mjs";
|
|
18
|
+
import { userInviteTokens } from "./schema/user-invite.mjs";
|
|
19
|
+
import { webhooks } from "./schema/webhook.mjs";
|
|
20
|
+
//#region src/schema/index.ts
|
|
21
|
+
/** Full Drizzle schema object passed to the database client. */
|
|
22
|
+
const schema = {
|
|
23
|
+
projects,
|
|
24
|
+
projectStatusConfigs,
|
|
25
|
+
builds,
|
|
26
|
+
captureAttempts,
|
|
27
|
+
captureLogs,
|
|
28
|
+
snapshots,
|
|
29
|
+
baselines,
|
|
30
|
+
comments,
|
|
31
|
+
labelTypes,
|
|
32
|
+
buildLabels,
|
|
33
|
+
tokens,
|
|
34
|
+
webhooks,
|
|
35
|
+
notificationChannels,
|
|
36
|
+
notificationSubscriptions,
|
|
37
|
+
users,
|
|
38
|
+
userInviteTokens,
|
|
39
|
+
projectMembers,
|
|
40
|
+
projectGroupMappings,
|
|
41
|
+
contentRefs
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { baselines, buildLabels, builds, captureAttempts, captureLogs, comments, contentRefs, labelTypes, notificationChannels, notificationSubscriptions, projectGroupMappings, projectMembers, projectStatusConfigs, projects, schema, snapshots, tokens, userInviteTokens, users, webhooks };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.mjs","names":["projectsTable","projectStatusConfigsTable","buildsTable","captureAttemptsTable","captureLogsTable","snapshotsTable","baselinesTable","commentsTable","labelTypesTable","buildLabelsTable","tokensTable","webhooksTable","notificationChannelsTable","notificationSubscriptionsTable","usersTable","userInviteTokensTable","projectMembersTable","projectGroupMappingsTable","contentRefsTable"],"sources":["../src/schema/index.ts"],"sourcesContent":["/**\n * Database schema: table handles, row types, and the schema object passed\n * to the database client.\n *\n * Table handles are available on the `schema` object with full type\n * inference (`schema.builds`, …); exact column types live on the narrow\n * per-entity definitions, and the row interfaces are pinned to them by\n * `schema-types.test.ts`.\n */\nimport type { AnyMySqlTable } from \"drizzle-orm/mysql-core\";\nimport { baselines as baselinesTable } from \"./baseline.ts\";\nimport { builds as buildsTable } from \"./build.ts\";\nimport {\n captureAttempts as captureAttemptsTable,\n captureLogs as captureLogsTable,\n} from \"./capture-attempt.ts\";\nimport { comments as commentsTable } from \"./comment.ts\";\nimport { contentRefs as contentRefsTable } from \"./content-refs.ts\";\nimport { buildLabels as buildLabelsTable, labelTypes as labelTypesTable } from \"./label.ts\";\nimport { projectMembers as projectMembersTable } from \"./member.ts\";\nimport {\n notificationChannels as notificationChannelsTable,\n notificationSubscriptions as notificationSubscriptionsTable,\n} from \"./notification.ts\";\nimport { projectGroupMappings as projectGroupMappingsTable } from \"./project-group-mapping.ts\";\nimport { projects as projectsTable } from \"./project.ts\";\nimport { snapshots as snapshotsTable } from \"./snapshot.ts\";\nimport { projectStatusConfigs as projectStatusConfigsTable } from \"./status-config.ts\";\nimport { tokens as tokensTable } from \"./token.ts\";\nimport { userInviteTokens as userInviteTokensTable } from \"./user-invite.ts\";\nimport { users as usersTable } from \"./user.ts\";\nimport { webhooks as webhooksTable } from \"./webhook.ts\";\n\nexport { builds } from \"./build.ts\";\nexport { captureAttempts, captureLogs } from \"./capture-attempt.ts\";\nexport { baselines } from \"./baseline.ts\";\nexport { comments } from \"./comment.ts\";\nexport { buildLabels, labelTypes } from \"./label.ts\";\nexport { projectMembers } from \"./member.ts\";\nexport { projectGroupMappings } from \"./project-group-mapping.ts\";\nexport { projects } from \"./project.ts\";\nexport { snapshots } from \"./snapshot.ts\";\nexport { projectStatusConfigs } from \"./status-config.ts\";\nexport { tokens } from \"./token.ts\";\nexport { userInviteTokens } from \"./user-invite.ts\";\nexport { users } from \"./user.ts\";\nexport { webhooks } from \"./webhook.ts\";\nexport { notificationChannels, notificationSubscriptions } from \"./notification.ts\";\nexport { contentRefs } from \"./content-refs.ts\";\n\n/** A capture attempt and its log lines for a single build run. */\nexport type { CaptureAttempt, CaptureLog } from \"./capture-attempt.ts\";\n/** Build row as stored in the `builds` table. */\nexport type { Build } from \"./build.ts\";\n/** Review comment row as stored in the `comments` table. */\nexport type { Comment } from \"./comment.ts\";\n/** Build label and label type rows. */\nexport type { BuildLabel, LabelType } from \"./label.ts\";\n/** Project membership row linking a user to a project role. */\nexport type { ProjectMember } from \"./member.ts\";\n/** Identity-provider group to project-role mapping row. */\nexport type { ProjectGroupMapping } from \"./project-group-mapping.ts\";\n/** Project row and its embedded Storybook metadata. */\nexport type { Project, StorybookMeta } from \"./project.ts\";\n/** Per-project git provider status-check configuration row. */\nexport type { ProjectStatusConfig } from \"./status-config.ts\";\n/** Snapshot row capturing a single story at one viewport. */\nexport type { Snapshot } from \"./snapshot.ts\";\n/** CI token row (stores only the hash). */\nexport type { Token } from \"./token.ts\";\n/** One-time invite token for local accounts. */\nexport type { UserInviteToken } from \"./user-invite.ts\";\n/** User row for authenticated identities. */\nexport type { User } from \"./user.ts\";\n/** Webhook subscription row. */\nexport type { Webhook } from \"./webhook.ts\";\n/** Notification channel and subscription rows. */\nexport type { NotificationChannel, NotificationSubscription } from \"./notification.ts\";\n/** Baseline row. */\nexport type { Baseline } from \"./baseline.ts\";\n/** Content ref row for deduplicated assets. */\nexport type { ContentRef } from \"./content-refs.ts\";\n\n/** Full Drizzle schema object passed to the database client. */\nexport const schema: {\n projects: AnyMySqlTable;\n projectStatusConfigs: AnyMySqlTable;\n builds: AnyMySqlTable;\n captureAttempts: AnyMySqlTable;\n captureLogs: AnyMySqlTable;\n snapshots: AnyMySqlTable;\n baselines: AnyMySqlTable;\n comments: AnyMySqlTable;\n labelTypes: AnyMySqlTable;\n buildLabels: AnyMySqlTable;\n tokens: AnyMySqlTable;\n webhooks: AnyMySqlTable;\n notificationChannels: AnyMySqlTable;\n notificationSubscriptions: AnyMySqlTable;\n users: AnyMySqlTable;\n userInviteTokens: AnyMySqlTable;\n projectMembers: AnyMySqlTable;\n projectGroupMappings: AnyMySqlTable;\n contentRefs: AnyMySqlTable;\n} = {\n projects: projectsTable,\n projectStatusConfigs: projectStatusConfigsTable,\n builds: buildsTable,\n captureAttempts: captureAttemptsTable,\n captureLogs: captureLogsTable,\n snapshots: snapshotsTable,\n baselines: baselinesTable,\n comments: commentsTable,\n labelTypes: labelTypesTable,\n buildLabels: buildLabelsTable,\n tokens: tokensTable,\n webhooks: webhooksTable,\n notificationChannels: notificationChannelsTable,\n notificationSubscriptions: notificationSubscriptionsTable,\n users: usersTable,\n userInviteTokens: userInviteTokensTable,\n projectMembers: projectMembersTable,\n projectGroupMappings: projectGroupMappingsTable,\n contentRefs: contentRefsTable,\n};\n\n/** The full database schema type. */\nexport type Schema = typeof schema;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoFA,MAAa,SAoBT;CACQA;CACYC;CACdC;CACSC;CACJC;CACFC;CACAC;CACDC;CACEC;CACCC;CACLC;CACEC;CACYC;CACKC;CACpBC;CACWC;CACFC;CACMC;CACTC;AACf"}
|
package/dist/tidb.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { MysqlDatabaseOptions } from "./index.mjs";
|
|
4
|
+
import { DatabaseAdapter } from "@storyshelf/core/adapter/database";
|
|
5
|
+
//#region src/tidb.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* TiDB Serverless (MySQL wire, serverless) preset.
|
|
8
|
+
* Alias over the mysql2 pool — TiDB's serverless driver
|
|
9
|
+
* (`@tidbcloud/serverless` + `drizzle-orm/tidb-serverless`) is
|
|
10
|
+
* wire-compatible and can be swapped when the optional peer is installed.
|
|
11
|
+
*/
|
|
12
|
+
type TidbDatabaseOptions = MysqlDatabaseOptions;
|
|
13
|
+
declare function createTidbDatabase(options: TidbDatabaseOptions): DatabaseAdapter;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { TidbDatabaseOptions, createTidbDatabase };
|
|
16
|
+
//# sourceMappingURL=tidb.d.mts.map
|
package/dist/tidb.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "node:path";
|
|
2
|
+
import "node:url";
|
|
3
|
+
import.meta.url;
|
|
4
|
+
import { createMysqlDatabase } from "./index.mjs";
|
|
5
|
+
//#region src/tidb.ts
|
|
6
|
+
function createTidbDatabase(options) {
|
|
7
|
+
return createMysqlDatabase(options);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createTidbDatabase };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=tidb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tidb.mjs","names":[],"sources":["../src/tidb.ts"],"sourcesContent":["import type { DatabaseAdapter } from \"@storyshelf/core/adapter/database\";\nimport { createMysqlDatabase, type MysqlDatabaseOptions } from \"./index.ts\";\n\n/**\n * TiDB Serverless (MySQL wire, serverless) preset.\n * Alias over the mysql2 pool — TiDB's serverless driver\n * (`@tidbcloud/serverless` + `drizzle-orm/tidb-serverless`) is\n * wire-compatible and can be swapped when the optional peer is installed.\n */\nexport type TidbDatabaseOptions = MysqlDatabaseOptions;\n\nexport function createTidbDatabase(options: TidbDatabaseOptions): DatabaseAdapter {\n return createMysqlDatabase(options);\n}\n"],"mappings":";;;;;AAWA,SAAgB,mBAAmB,SAA+C;CAChF,OAAO,oBAAoB,OAAO;AACpC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,113 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyshelf/db-mysql",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.5.3",
|
|
4
|
+
"description": "MySQL/MariaDB database adapter for StoryShelf (mysql2 + Drizzle, PlanetScale/TiDB compatible).",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"database",
|
|
7
|
+
"drizzle",
|
|
8
|
+
"mariadb",
|
|
9
|
+
"mysql",
|
|
10
|
+
"storybook"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/GuptaSiddhant/StoryShelf#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/GuptaSiddhant/StoryShelf/issues"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "Siddhant Gupta",
|
|
19
|
+
"url": "https://guptasiddhant.com"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/GuptaSiddhant/StoryShelf.git",
|
|
24
|
+
"directory": "packages/db-mysql"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"type": "module",
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"types": "./dist/index.d.mts",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"source": "./src/index.ts",
|
|
35
|
+
"default": "./dist/index.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./ddl": {
|
|
38
|
+
"source": "./src/ddl.ts",
|
|
39
|
+
"default": "./dist/ddl.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./planetscale": {
|
|
42
|
+
"source": "./src/planetscale.ts",
|
|
43
|
+
"default": "./dist/planetscale.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./schema": {
|
|
46
|
+
"source": "./src/schema/index.ts",
|
|
47
|
+
"default": "./dist/schema.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./tidb": {
|
|
50
|
+
"source": "./src/tidb.ts",
|
|
51
|
+
"default": "./dist/tidb.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./package.json": "./package.json"
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"exports": {
|
|
57
|
+
".": "./dist/index.mjs",
|
|
58
|
+
"./ddl": "./dist/ddl.mjs",
|
|
59
|
+
"./planetscale": "./dist/planetscale.mjs",
|
|
60
|
+
"./schema": "./dist/schema.mjs",
|
|
61
|
+
"./tidb": "./dist/tidb.mjs",
|
|
62
|
+
"./package.json": "./package.json"
|
|
63
|
+
},
|
|
64
|
+
"access": "public"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "tsdown",
|
|
68
|
+
"dev": "tsdown -w",
|
|
69
|
+
"fmt": "oxfmt ./src",
|
|
70
|
+
"lint": "oxlint --type-aware --type-check ./src",
|
|
71
|
+
"test": "vitest run",
|
|
72
|
+
"prepublishOnly": "nub run build"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"@storyshelf/core": "0.5.3",
|
|
76
|
+
"drizzle-orm": "^0.44.0",
|
|
77
|
+
"mysql2": "^3.9.0"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@planetscale/database": "^1.19.0",
|
|
81
|
+
"@tidbcloud/serverless": "^0.1.0",
|
|
82
|
+
"@types/node": "^26.0.0",
|
|
83
|
+
"@vitest/coverage-v8": "^4.0.0",
|
|
84
|
+
"mysql2": "^3.9.0",
|
|
85
|
+
"oxfmt": "^0.65.0",
|
|
86
|
+
"oxlint": "^1.80.0",
|
|
87
|
+
"oxlint-tsgolint": "^7.0.2001",
|
|
88
|
+
"tsdown": "^0.22.14",
|
|
89
|
+
"typescript": "^7.0.2",
|
|
90
|
+
"vitest": "^5.0.0"
|
|
91
|
+
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"@planetscale/database": "^1.19.0",
|
|
94
|
+
"@tidbcloud/serverless": "^0.1.0"
|
|
95
|
+
},
|
|
96
|
+
"peerDependenciesMeta": {
|
|
97
|
+
"@planetscale/database": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"@tidbcloud/serverless": {
|
|
101
|
+
"optional": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"jsr": {
|
|
105
|
+
"runtimeCompat": {
|
|
106
|
+
"node": true,
|
|
107
|
+
"deno": true,
|
|
108
|
+
"browser": false,
|
|
109
|
+
"workerd": false,
|
|
110
|
+
"bun": true
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|