Skip to content

Commit

Permalink
Move generator to packages folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-dp committed Jun 28, 2024
1 parent 06d92d0 commit aac4848
Show file tree
Hide file tree
Showing 158 changed files with 61 additions and 61 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generator_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
pull_request:
paths:
- "pnpm-lock.yaml"
- "generator/**"
- "packages/generator/**"

defaults:
run:
working-directory: generator
working-directory: packages/generator

jobs:
verify_formatting:
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
deps:
make -C ../../packages/client deps
make -C ../client deps
pnpm install --frozen-lockfile
make -C ../../packages/client build
make -C ../../generator build
make -C ..//client build
make -C ../generator build

build: node_modules
pnpm run build
Expand Down
2 changes: 1 addition & 1 deletion packages/client/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build_generator:
$(MAKE) -C ../../generator build
$(MAKE) -C ../generator build

deps:
pnpm install --frozen-lockfile
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion generator/README.md → packages/generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ If you want to customize the behaviour of the generator you can use the followin

```prisma
generator zod {
provider = "ts-node-dev ../generator/src/bin.ts"
provider = "ts-node-dev ../packages/generator/src/bin.ts"
output = "./generated/zod" // default is ./generated/zod
useMultipleFiles = true // default is false
createInputTypes = false // default is true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
108 changes: 54 additions & 54 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aac4848

Please sign in to comment.