Skip to content

Commit

Permalink
Add quotes surrounding path (#4956)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestecker authored Feb 28, 2021
1 parent f8b814a commit f32316e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dry-laws-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@keystonejs/adapter-prisma": patch
---

Fixed errors when using a schema path containing a space character.
2 changes: 1 addition & 1 deletion packages/adapter-prisma/lib/adapter-prisma.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PrismaAdapter extends BaseKeystoneAdapter {
}

_runPrismaCmd(cmd) {
return execSync(`yarn prisma ${cmd} --schema ${this.schemaPath}`, {
return execSync(`yarn prisma ${cmd} --schema "${this.schemaPath}"`, {
env: { ...process.env, DATABASE_URL: this._url() },
encoding: 'utf-8',
});
Expand Down

1 comment on commit f32316e

@vercel
Copy link

@vercel vercel bot commented on f32316e Feb 28, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.