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

Disable --version and -v for prisma alias. #1767

Merged
merged 3 commits into from
Feb 10, 2021

Conversation

peterp
Copy link
Contributor

@peterp peterp commented Feb 10, 2021

This disables the "yargs" version flags and instead passes them along to prisma. So, yarn rw prisma --version or yarn rw prisma -v now outputs the following:

image

The same is true for --help

image

Fixes #1764

@github-actions
Copy link

github-actions bot commented Feb 10, 2021

Copy link
Contributor

@thedavidprice thedavidprice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeppers 👍

@thedavidprice thedavidprice merged commit e8d12d2 into main Feb 10, 2021
@thedavidprice thedavidprice deleted the pp-prisma-alias-disable-version branch February 10, 2021 05:50
@thedavidprice thedavidprice modified the milestones: v1.0, v0.25.0 Feb 10, 2021
dac09 added a commit to dac09/redwood that referenced this pull request Feb 12, 2021
…ender-p1

* 'main' of github.com:redwoodjs/redwood:
  v0.25.0
  yarn rw prisma commands now show a little tip (redwoodjs#1772)
  FIx typo (redwoodjs#1779)
  Ensure all data is removed during the teardown step (redwoodjs#1714)
  [v0.25] revert to @prisma/cli; recreate yarn.lock (redwoodjs#1774)
  use prisma db push for test DB (redwoodjs#1768)
  Disable --version and -v for prisma alias. (redwoodjs#1767)
  Rebuild Prisma Client between upgrades (redwoodjs#1155)
  upgrade Prisma v2.16.1 (redwoodjs#1766)
  [v0.25] Remove warning if you scaffold a model with a relation (redwoodjs#1757)
  [v0.25] Scaffolded many-to-many relationship fixes (redwoodjs#1758)
  add forrest and kim-adeline; update all contribs (redwoodjs#1763)
  Run clean and then build the js.
  Fix: applying afterQuery in storybook mocks (redwoodjs#1740)
  restructure and update Deploy command and change Setup Deploy command template [breaking] (redwoodjs#1747)
  Fixes prisma command when path has spaces
  Make tutorial work with workspaces.
  Add "packages/*" to the template.
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

Successfully merging this pull request may close these issues.

[v0.25] yarn rw prisma --version should have same output as yarn prisma --version
2 participants