Skip to content

types directory empty after running npx prisma generate in the usage project #321

Description

@the-real-adammork

Bug description

Fresh "create" with no changes does not output any files to the types directory. The directory is created, but no files within after a generate.

To Reproduce

Screenshot for prompt questions answers:

run the "create" flow on macOS then:

❯ cd packages/usage
❯ git log
commit ed3d8e4e830f8ed413604af4a3c710e09d329929 (HEAD -> main)
Author: Adam Mork <adammork@gmail.com>
Date:   Sat May 13 19:42:43 2023 -0600

    feat: added husky for safety commit-msg

commit 4b005bd347a2bc22bf86a65c3484c1e01a31a968
Author: Adam Mork <adammork@gmail.com>
Date:   Sat May 13 19:42:42 2023 -0600

    init
❯ pwd
/Users/adam/Projects/pntmnt/prisma-generator-types-test/packages/usage
❯ npx prisma generate
Prisma schema loaded from prisma/schema.prisma
prisma:info prisma-generator-types-test:Registered

✔ Generated prisma-generator-types-test (1.0.0) to ./types in 4ms

┌─────────────────────────────────────────────────────────┐
│  Update available 3.12.0 -> 4.14.0                      │
│                                                         │
│  This is a major update - please follow the guide at    │
│  https://pris.ly/d/major-version-upgrade                │
│                                                         │
│  Run the following to update                            │
│    npm i --save-dev prisma@latest                       │
│    npm i @prisma/client@latest                          │
└─────────────────────────────────────────────────────────┘
❯ gs
# On branch: main  |  No changes (working directory clean)

Expected behavior

files in the types directory

Environment & setup

  • OS: macos ventura 13.0
  • Node.js version:
❯ npx --version
9.5.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions