blitz-js / legacy-framework

MIT License
3 stars 2 forks source link

Bad name of mutation file with ```blitz generate mutation``` #358

Closed davidroulier closed 2 years ago

davidroulier commented 2 years ago

What is the problem?

When generating a mutation with blitz generate mutation file is named __input__.ts

Paste all your error logs here:

.

Paste all relevant code snippets here:

.

What are detailed steps to reproduce this?

  1. Generate a new blitz project with npx blitz new <projectName>
  2. Options : TypeScript, Full (with db, auth...) and React Hook Form
  3. Wait for the project to init
  4. blitz generate mutation <nameOfTheMutation>

Run blitz -v and paste the output here:

macOS Monterey | darwin-arm64 | Node: v16.13.1

blitz: 0.44.4 (global)
blitz: 0.44.4 (local)

  Package manager: yarn
  System:
    OS: macOS 12.0.1
    CPU: (8) arm64 Apple M1
    Memory: 68.53 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.1/bin/yarn
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
    Watchman: Not Found
  npmPackages:
    @prisma/client: 3.7.0 => 3.7.0
    blitz: 0.44.4 => 0.44.4
    prisma: 3.7.0 => 3.7.0
    react: 18.0.0-beta-149b420f6-20211119 => 18.0.0-beta-149b420f6-20211119
    react-dom: 18.0.0-alpha-5ca4b0433-20211020 => 18.0.0-alpha-5ca4b0433-20211020
    typescript: ~4.5 => 4.5.4

Please include below any other applicable logs and screenshots that show your problem:

No response