Skip to content

Commit dadb529

Browse files
committed
Rename to @synthetixio/codegen-graph-ts
1 parent 5de5d88 commit dadb529

File tree

5 files changed

+29
-26
lines changed

5 files changed

+29
-26
lines changed

packages/queries/codegen.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-var-requires */
22
const fs = require('fs');
33

4-
const cgt = require('maxibon-codegen-graph-ts');
4+
const cgt = require('@synthetixio/codegen-graph-ts');
55

66
try {
77
fs.mkdirSync(__dirname + '/generated/');

packages/queries/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
},
3838
"dependencies": {
3939
"@snapshot-labs/snapshot.js": "^0.3.22",
40+
"@synthetixio/codegen-graph-ts": "workspace:*",
4041
"@synthetixio/contracts-interface": "workspace:*",
4142
"@synthetixio/optimism-networks": "workspace:*",
4243
"@synthetixio/providers": "workspace:*",
@@ -46,8 +47,7 @@
4647
"ethers": "^5.5.3",
4748
"graphql": "^15.5.0",
4849
"graphql-request": "^3.4.0",
49-
"lodash": "^4.17.21",
50-
"maxibon-codegen-graph-ts": "workspace:*"
50+
"lodash": "^4.17.21"
5151
},
5252
"devDependencies": {
5353
"@testing-library/react-hooks": "^7.0.0",

tools/codegen-graph-ts/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"name": "maxibon-codegen-graph-ts",
2+
"name": "@synthetixio/codegen-graph-ts",
3+
"publishConfig": {
4+
"access": "public"
5+
},
36
"version": "0.2.1",
47
"description": "Generate typescript request library for any subgraph based on its entity definition",
58
"main": "build/src/index.js",

tools/codegen-graph-ts/src/gen/segments/body.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Entity } from '../types';
22
import { convertType, mapType, queryFunctionName } from '../util';
33

4-
const PACKAGE_NAME = 'maxibon-codegen-graph-ts';
4+
const PACKAGE_NAME = '@synthetixio/codegen-graph-ts';
55

66
/**
77
* Required imports and primitive types required for other functions

yarn.lock

+21-21
Original file line numberDiff line numberDiff line change
@@ -2281,6 +2281,26 @@ __metadata:
22812281
languageName: node
22822282
linkType: hard
22832283

2284+
"@synthetixio/codegen-graph-ts@workspace:*, @synthetixio/codegen-graph-ts@workspace:tools/codegen-graph-ts":
2285+
version: 0.0.0-use.local
2286+
resolution: "@synthetixio/codegen-graph-ts@workspace:tools/codegen-graph-ts"
2287+
dependencies:
2288+
"@synthetixio/wei": "workspace:*"
2289+
"@types/commander": ^2.12.2
2290+
"@types/lodash": ^4.14.169
2291+
axios: ^0.21.4
2292+
commander: ^8.1.0
2293+
eval: ^0.1.6
2294+
graphql: 15.5.0
2295+
graphql-request: 3.4.0
2296+
lodash: ^4.17.21
2297+
node-fetch: ^2.6.7
2298+
typescript: ^4.4.2
2299+
bin:
2300+
codegen-graph-ts: build/src/gen/index.js
2301+
languageName: unknown
2302+
linkType: soft
2303+
22842304
"@synthetixio/contracts-interface@workspace:*, @synthetixio/contracts-interface@workspace:packages/contracts-interface":
22852305
version: 0.0.0-use.local
22862306
resolution: "@synthetixio/contracts-interface@workspace:packages/contracts-interface"
@@ -2317,6 +2337,7 @@ __metadata:
23172337
resolution: "@synthetixio/queries@workspace:packages/queries"
23182338
dependencies:
23192339
"@snapshot-labs/snapshot.js": ^0.3.22
2340+
"@synthetixio/codegen-graph-ts": "workspace:*"
23202341
"@synthetixio/contracts-interface": "workspace:*"
23212342
"@synthetixio/optimism-networks": "workspace:*"
23222343
"@synthetixio/providers": "workspace:*"
@@ -2330,7 +2351,6 @@ __metadata:
23302351
graphql: ^15.5.0
23312352
graphql-request: ^3.4.0
23322353
lodash: ^4.17.21
2333-
maxibon-codegen-graph-ts: "workspace:*"
23342354
react: ^17.0.2
23352355
react-dom: ^17.0.2
23362356
react-query: 3.16.0
@@ -8968,26 +8988,6 @@ __metadata:
89688988
languageName: node
89698989
linkType: hard
89708990

8971-
"maxibon-codegen-graph-ts@workspace:*, maxibon-codegen-graph-ts@workspace:tools/codegen-graph-ts":
8972-
version: 0.0.0-use.local
8973-
resolution: "maxibon-codegen-graph-ts@workspace:tools/codegen-graph-ts"
8974-
dependencies:
8975-
"@synthetixio/wei": "workspace:*"
8976-
"@types/commander": ^2.12.2
8977-
"@types/lodash": ^4.14.169
8978-
axios: ^0.21.4
8979-
commander: ^8.1.0
8980-
eval: ^0.1.6
8981-
graphql: 15.5.0
8982-
graphql-request: 3.4.0
8983-
lodash: ^4.17.21
8984-
node-fetch: ^2.6.7
8985-
typescript: ^4.4.2
8986-
bin:
8987-
maxibon-codegen-graph-ts: build/src/gen/index.js
8988-
languageName: unknown
8989-
linkType: soft
8990-
89918991
"md5.js@npm:^1.3.4":
89928992
version: 1.3.5
89938993
resolution: "md5.js@npm:1.3.5"

0 commit comments

Comments
 (0)