@prismakit/cli 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/README.md +26 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -2,26 +2,48 @@
2
2
 
3
3
  CLI for PrismaKit: scaffold repositories, codegen relation aliases, validate compose.
4
4
 
5
+ [Documentation](https://github.com/fikiap23/prismakit/blob/master/docs/README.md) · [CLI reference](https://github.com/fikiap23/prismakit/blob/master/docs/reference/cli.md) · [GitHub](https://github.com/fikiap23/prismakit)
6
+
5
7
  ## Install
6
8
 
7
9
  ```bash
8
10
  pnpm add -D @prismakit/cli
9
- # or
10
- npx @prismakit/cli
11
11
  ```
12
12
 
13
13
  Binary: `prismakit`
14
14
 
15
15
  ## Commands
16
16
 
17
+ ### `generate` — scaffold
18
+
17
19
  ```bash
18
20
  # Repository only (default)
19
21
  npx prismakit generate product --cache
20
22
 
21
23
  # Full Nest module (controller + service + types)
22
- npx prismakit generate product --cache --full
24
+ npx prismakit generate product --cache --full --route products
25
+
26
+ # Custom Prisma import path
27
+ npx prismakit generate product --prisma-import @prisma/client
28
+ ```
29
+
30
+ | Flag | Description |
31
+ |------|-------------|
32
+ | `--cache` | Include cache config in the repository |
33
+ | `--full` | Emit Nest module + controller + service + types |
34
+ | `--route` | HTTP route for `--full` |
35
+ | `--prisma-import` | Prisma client import (default `@prisma/client`) |
36
+ | `--dry-run` | Print files without writing |
37
+
38
+ ### `codegen` — relation aliases
23
39
 
40
+ ```bash
24
41
  npx prismakit codegen --write
42
+ ```
43
+
44
+ ### `validate` — compose safety
45
+
46
+ ```bash
25
47
  npx prismakit validate
26
48
  ```
27
49
 
@@ -29,7 +51,7 @@ npx prismakit validate
29
51
 
30
52
  - [Documentation index](https://github.com/fikiap23/prismakit/blob/master/docs/README.md)
31
53
  - [CLI reference](https://github.com/fikiap23/prismakit/blob/master/docs/reference/cli.md)
32
-
54
+ - [Getting started](https://github.com/fikiap23/prismakit/blob/master/docs/getting-started.md)
33
55
 
34
56
  ## License
35
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismakit/cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "CLI for PrismaKit — generate modules, codegen relation aliases, validate compose",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -26,10 +26,10 @@
26
26
  "README.md"
27
27
  ],
28
28
  "dependencies": {
29
- "@prismakit/core": "1.0.2"
29
+ "@prismakit/core": "1.0.4"
30
30
  },
31
31
  "peerDependencies": {
32
- "@prismakit/core": "1.0.2"
32
+ "@prismakit/core": "1.0.4"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "^5.9.2",