Skip to content

Commit

Permalink
regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
RomKadria committed Mar 6, 2024
1 parent be0d189 commit b9aa109
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

4 changes: 2 additions & 2 deletions packages/setup-api/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export const updatePackageJsonScripts = () => {
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
packageJson.scripts = packageJson.scripts || {};
packageJson.scripts['fetch:schema'] = 'bash fetch-schema.sh';
packageJson.scripts['codgen'] = 'graphql-codegen';
packageJson.scripts['fetch:generate'] = 'npm run fetch:schema && npm run codgen';
packageJson.scripts['codegen'] = 'graphql-codegen';
packageJson.scripts['fetch:generate'] = 'npm run fetch:schema && npm run codegen';

fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
console.log('Updated package.json with new scripts');
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": "0.0.4",
"version": "0.0.5",
"description": "monday.com setup api cli",
"main": "dist/cjs/index.js",
"types": "dist/cjs/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/setup-api/tests/setup-graphql.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('setupGraphQL', () => {
(fs.writeFileSync as jest.Mock).mock.calls.find((call) => call[0] === './package.json')[1],
);
expect(writtenContent.scripts['fetch:schema']).toEqual('bash fetch-schema.sh');
expect(writtenContent.scripts['codgen']).toEqual('graphql-codegen');
expect(writtenContent.scripts['fetch:generate']).toEqual('npm run fetch:schema && npm run codgen');
expect(writtenContent.scripts['codegen']).toEqual('graphql-codegen');
expect(writtenContent.scripts['fetch:generate']).toEqual('npm run fetch:schema && npm run codegen');
});
});

0 comments on commit b9aa109

Please sign in to comment.