$ git clone [email protected]:graphcool/prisma.git
$ cd prisma/cli
$ yarn install
$ cd packages/prisma-yml
$ yarn install && yarn build
$ cd ../prisma-cli-engine
$ yarn install && yarn build
$ cd ../prisma-db-introspection
$ yarn install && yarn build
$ cd ../prisma-cli-core
$ yarn install && yarn build
$ cd ../prisma-generate-schema
$ yarn install && yarn build
$ cd ../prisma-cli
$ yarn install && yarn build
$ node dist/index.js
To understand the current dependencies setup of Prisma, please have a look at ARCHITECTURE.md
You might need to set the environment variable GRAPHCOOL_CLI_CLEAR_CACHE
to some value to prevent overeager caching of your code.
To recreate jest snapshots:
cd packages/prisma-cli-core
yarn test -- -u