Skip to content

Commit

Permalink
Add ts-node as a peerDependency (#8779)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisscruz committed Jan 4, 2023
1 parent 2a33fc7 commit ad5d833
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-lamps-sleep.md
@@ -0,0 +1,5 @@
---
'@graphql-codegen/cli': patch
---

add ts-node as a peerDependency
3 changes: 2 additions & 1 deletion packages/graphql-codegen-cli/package.json
Expand Up @@ -90,7 +90,8 @@
"prettier": "2.7.1"
},
"peerDependencies": {
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
"ts-node": ">=10"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion scripts/examples-front-end-upgrade-codegen.js
Expand Up @@ -25,7 +25,7 @@ const { exec } = require('child_process');

console.log(`${cwd}: Started`);
exec(
`yarn add -D typescript @graphql-codegen/cli@${codegenCLIversion} @graphql-codegen/client-preset@${clientPresetVersion}; yarn codegen`,
`yarn add -D typescript ts-node @graphql-codegen/cli@${codegenCLIversion} @graphql-codegen/client-preset@${clientPresetVersion}; yarn codegen`,
{ cwd },
(err, stdout) => {
if (err) {
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/docs/guides/react-vue.mdx
Expand Up @@ -47,21 +47,21 @@ For most GraphQL clients and frameworks (React, Vue), install the following pack

```bash
yarn add graphql
yarn add -D typescript @graphql-codegen/cli @graphql-codegen/client-preset
yarn add -D typescript ts-node @graphql-codegen/cli @graphql-codegen/client-preset
```

**For npm:**

```bash
npm i -S graphql
npm i -D typescript @graphql-codegen/cli @graphql-codegen/client-preset
npm i -D typescript ts-node @graphql-codegen/cli @graphql-codegen/client-preset
```

**For pnpm:**

```bash
pnpm i graphql @graphql-typed-document-node/core
pnpm i -D typescript @graphql-codegen/cli @graphql-codegen/client-preset
pnpm i -D typescript ts-node @graphql-codegen/cli @graphql-codegen/client-preset
```

<br />
Expand Down

0 comments on commit ad5d833

Please sign in to comment.