Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate:graphqlschema script showing "Unknown script" #176

Closed
denolfe opened this issue May 3, 2024 · 2 comments
Closed

generate:graphqlschema script showing "Unknown script" #176

denolfe opened this issue May 3, 2024 · 2 comments
Assignees

Comments

@denolfe
Copy link
Member

denolfe commented May 3, 2024

Attempting to run the script pnpm payload generate:graphqlschema is giving Unknown script. This script existed in 2.0.

Looks like changes to payload/src/bin/index.ts may have dropped this from the case statement, or this bin script was migrated to our graphql package and isn't being loaded properly.

@JarrodMFlesch JarrodMFlesch self-assigned this May 3, 2024
@teamowldev
Copy link

Hey guys, thanks for the report, you think in the next version it can be solved or it might take longer? @denolfe @JarrodMFlesch

@jmikrut
Copy link
Member

jmikrut commented May 21, 2024

This should be all set now. You'd use it like:

pnpm payload-graphql generate:schema

Let us know how it works for ya!

@jmikrut jmikrut closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants