Skip to content

Commit 2f12469

Browse files
committed
bump: package version and references
1 parent 669d33f commit 2f12469

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Ade Yahya Prasetyo, 2024 m1212e
3+
Copyright (c) 2021 Ade Yahya Prasetyo, 2024 m1212e, 2026 Aran Leite
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
# prismabox
1+
# @hyoretsu/prismabox
22
Generate versatile [typebox](https://github.com/sinclairzx81/typebox) schemes from your [prisma](https://github.com/prisma) schema.
33

44
> Currently does not support [mongoDB composite types](https://www.prisma.io/docs/orm/prisma-schema/data-model/models#defining-composite-types)
55
6-
> Development is currently on hold, please see [here](https://github.com/m1212e/prismabox/issues/59)
7-
86
Install it in your project,
97
```bash
10-
npm i -D prismabox
11-
pnpm i -D prismabox
12-
bun add -D prismabox
8+
npm i -D @hyoretsu/prismabox
9+
pnpm i -D @hyoretsu/prismabox
10+
bun add -D @hyoretsu/prismabox
1311
```
1412

1513
then add
@@ -46,7 +44,7 @@ Prismabox offers annotations to adjust the output of models and fields.
4644
| @prismabox.create.input.hide | - | Hides the field or model from the outputs only in the input create model|
4745
| @prismabox.update.input.hide | - | Hides the field or model from the outputs only in the input update model|
4846
| @prismabox.options | @prismabox.options{ min: 10, max: 20 } | Uses the provided options for the field or model in the generated schema. Be careful to use valid JS/TS syntax! |
49-
| @prismabox.typeOverwrite | @prismabox.typeOverwrite=Type.CustomName | Overwrite the type prismabox outputs for a field with a custom string. See [m1212e/prismabox#29](https://github.com/m1212e/prismabox/issues/29) for an extended usecase |
47+
| @prismabox.typeOverwrite | @prismabox.typeOverwrite=Type.CustomName | Overwrite the type prismabox outputs for a field with a custom string. See [hyoretsu/prismabox#29](https://github.com/hyoretsu/prismabox/issues/29) for an extended usecase |
5048

5149
> For a more detailed list of available annotations, please see [annotations.ts](src/annotations/annotations.ts)
5250
@@ -117,6 +115,6 @@ If enabled, the generator will additonally output more schemes for each model wh
117115
## Notes
118116
### `__nullable__` vs `Type.Optional`
119117

120-
Prismabox wraps nullable fields in a custom `__nullable__` method which allows `null` in addition to `undefined`. From the relevant [issue comment](https://github.com/m1212e/prismabox/issues/33#issuecomment-2708755442):
118+
Prismabox wraps nullable fields in a custom `__nullable__` method which allows `null` in addition to `undefined`. From the relevant [issue comment](https://github.com/hyoretsu/prismabox/issues/33#issuecomment-2708755442):
121119
> prisma in some scenarios allows null OR undefined as types where optional only allows for undefined/is reflected as undefined in TS types
122120

build.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ await writeFile(
3838
JSON.stringify({
3939
...packagejson,
4040
version,
41-
bin: { prismabox: "cli.js" },
41+
bin: {
42+
prismabox: "cli.js",
43+
},
4244
}),
4345
);

bun.lockb

840 Bytes
Binary file not shown.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "prismabox",
3-
"version": "2.2.0",
2+
"name": "@hyoretsu/prismabox",
3+
"version": "2.3.0",
44
"license": "MIT",
55
"description": "Typebox generator for prisma schema",
66
"author": {
7-
"name": "Ade Yahya Prasetyo, m1212e"
7+
"name": "Ade Yahya Prasetyo, m1212e, Aran Leite"
88
},
99
"keywords": [
1010
"prisma2",
@@ -16,9 +16,9 @@
1616
"typebox-generator",
1717
"prismabox"
1818
],
19-
"homepage": "https://github.com/m1212e/prismabox",
19+
"homepage": "https://github.com/hyoretsu/prismabox",
2020
"repository": {
21-
"url": "https://github.com/m1212e/prismabox.git"
21+
"url": "https://github.com/hyoretsu/prismabox.git"
2222
},
2323
"scripts": {
2424
"dev": "bun run build && bunx prisma generate",

0 commit comments

Comments
 (0)