Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Commit

Permalink
update to last version of schema
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedElywa committed Jun 16, 2020
1 parent 9b0d904 commit 4f71f3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"create-types": "src/types.js"
},
"dependencies": {
"@prisma-tools/schema": "^0.0.4",
"@prisma-tools/schema": "^0.0.11",
"arg": "^4.1.2",
"pluralize": "^8.0.0",
"prettier": "^2.0.5"
Expand Down
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

const arg = require('arg');
const convertSchema = require('@prisma-tools/schema');
const { convertSchemaToObject } = require('@prisma-tools/schema');
const buildForSchemaVersion = require('./schema');
const buildForNexusVersion = require('./nexus');

Expand Down Expand Up @@ -33,7 +33,7 @@ function cli() {
help();
return;
}
const schema = convertSchema.default(args['--schema']);
const schema = convertSchemaToObject(args['--schema']);
if (args['-s']) {
buildForSchemaVersion(schema, args);
} else {
Expand Down

0 comments on commit 4f71f3e

Please sign in to comment.