lifeomic / json-schema-to-graphql-types

A tool to convert JSON Schemas into GraphQL Types
MIT License
103 stars 21 forks source link

Add support non global instalation #60

Open MaxmaxmaximusAWS opened 3 years ago

MaxmaxmaximusAWS commented 3 years ago

Add support non global instalation.

npm i @lifeomic/json-schema-to-graphql-types

package.json

{
  "scripts": {
    "convert": "convert-json-schemas-to-graphql-types src/graphql/"
  }
}
mdlavin commented 3 years ago

Thanks for your suggestion. Does something need to change to support that?

MaxmaxmaximusAWS commented 3 years ago
npm run convert

Error: convert-json-schemas-to-graphql-types file not exists