Skip to content

Commit

Permalink
Merge pull request #42 from mondaycom/feature/romka/setup-api-graphql…
Browse files Browse the repository at this point in the history
…-dep

add graphql as dep for setup-api
  • Loading branch information
RomKadria authored Nov 13, 2024
2 parents 106e27c + 37fb17a commit 38a1f67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions packages/setup-api/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import * as fs from 'fs';

const isYarn = fs.existsSync('yarn.lock');
const GRAPHQL_REQUEST = 'graphql-request@6.1.0';
const GRAPHQL = 'graphql@16.8.2';

const installCommands = isYarn
? [
`yarn add ${GRAPHQL_REQUEST}`,
`yarn add ${GRAPHQL_REQUEST} ${GRAPHQL}`,
'yarn add -D @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/typescript-operations',
]
: [
`npm install ${GRAPHQL_REQUEST}`,
`npm install ${GRAPHQL_REQUEST} ${GRAPHQL}`,
'npm install --save-dev @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/typescript-operations',
];

Expand Down
2 changes: 1 addition & 1 deletion packages/setup-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mondaydotcomorg/setup-api",
"version": "1.2.2",
"version": "1.3.1",
"description": "monday.com setup api cli",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
Expand Down

0 comments on commit 38a1f67

Please sign in to comment.