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:
4
LICENSE
4
LICENSE
@@ -23,5 +23,5 @@ drizzle-orm monorepo by the Drizzle Team (https://github.com/drizzle-team/drizzl
|
||||
The original work is Copyright 2024 Drizzle Team and is licensed under the
|
||||
Apache License, Version 2.0.
|
||||
|
||||
Modifications (rebranding to @alkdev/drizzlebox, dependency migration to
|
||||
@alkdev/typebox, and standalone packaging) are Copyright 2025 alkdev.
|
||||
Modifications (rebranding to @alkdev/dbtype, dependency migration to
|
||||
@alkdev/typebox, and standalone packaging) are Copyright 2025-2026 alkdev.
|
||||
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
|
||||
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "@alkdev/drizzlebox",
|
||||
"name": "@alkdev/dbtype",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@alkdev/drizzlebox",
|
||||
"name": "@alkdev/dbtype",
|
||||
"version": "0.1.0",
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
|
||||
10
package.json
10
package.json
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@alkdev/drizzlebox",
|
||||
"name": "@alkdev/dbtype",
|
||||
"version": "0.1.0",
|
||||
"description": "Generate Typebox schemas from Drizzle ORM schemas — fork of drizzle-typebox with @alkdev/typebox support",
|
||||
"description": "Schema-first multi-dialect TypeBox/Drizzle bridge — define once, validate and deploy anywhere",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsx scripts/build.ts",
|
||||
@@ -29,11 +29,11 @@
|
||||
"types": "./index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://git.alk.dev/alkdev/drizzlebox.git"
|
||||
"url": "git+https://git.alk.dev/alkdev/dbtype.git"
|
||||
},
|
||||
"keywords": [
|
||||
"typebox",
|
||||
"drizzlebox",
|
||||
"dbtype",
|
||||
"validate",
|
||||
"validation",
|
||||
"schema",
|
||||
@@ -49,7 +49,7 @@
|
||||
"typescript",
|
||||
"ts"
|
||||
],
|
||||
"author": "Based on drizzle-typebox by Drizzle Team; fork maintained by alkdev",
|
||||
"author": "Based on drizzle-typebox by Drizzle Team; maintained by alkdev",
|
||||
"license": "Apache-2.0",
|
||||
"peerDependencies": {
|
||||
"@alkdev/typebox": ">=0.34.49",
|
||||
|
||||
Reference in New Issue
Block a user