Rename @alkdev/drizzlebox -> @alkdev/dbtype
Update package name, description, repo URL, keywords, and docs to reflect the new project identity as dbtype.
This commit is contained in:
12
README.md
12
README.md
@@ -1,13 +1,13 @@
|
||||
# @alkdev/drizzlebox
|
||||
# @alkdev/dbtype
|
||||
|
||||
Generate [TypeBox](https://github.com/alkdev/typebox) schemas from [Drizzle ORM](https://orm.drizzle.team) schemas.
|
||||
Schema-first multi-dialect TypeBox/Drizzle bridge — define once, validate and deploy anywhere.
|
||||
|
||||
This is a fork of [drizzle-typebox](https://github.com/drizzle-team/drizzle-orm/tree/main/drizzle-typebox) by the Drizzle Team, adapted for use with `@alkdev/typebox` (a maintained fork of `@sinclair/typebox`).
|
||||
Based on [drizzle-typebox](https://github.com/drizzle-team/drizzle-orm/tree/main/drizzle-typebox) by the Drizzle Team, adapted for use with `@alkdev/typebox` (a maintained fork of `@sinclair/typebox`).
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm install @alkdev/drizzlebox
|
||||
npm install @alkdev/dbtype
|
||||
npm install @alkdev/typebox
|
||||
npm install drizzle-orm
|
||||
```
|
||||
@@ -23,7 +23,7 @@ npm install drizzle-orm
|
||||
|
||||
```ts
|
||||
import { pgEnum, pgTable, serial, text, timestamp } from 'drizzle-orm/pg-core';
|
||||
import { createInsertSchema, createSelectSchema, createUpdateSchema } from '@alkdev/drizzlebox';
|
||||
import { createInsertSchema, createSelectSchema, createUpdateSchema } from '@alkdev/dbtype';
|
||||
import { Type } from '@alkdev/typebox';
|
||||
import { Value } from '@alkdev/typebox/value';
|
||||
|
||||
@@ -67,7 +67,7 @@ const isUserValid: boolean = Value.Check(insertUserSchema, {
|
||||
|
||||
- Uses `@alkdev/typebox` instead of `@sinclair/typebox`
|
||||
- Standalone package (no monorepo dependency)
|
||||
- Published as `@alkdev/drizzlebox` on npm
|
||||
- Published as `@alkdev/dbtype` on npm
|
||||
|
||||
## Attribution
|
||||
|
||||
|
||||
Reference in New Issue
Block a user