From 6416683ce70923ade27be4a41b005423ffb1ae6c Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Tue, 14 Nov 2023 20:11:48 -0500 Subject: [PATCH] remove json import --- packages/cli/src/constants.ts | 2 +- packages/cli/tsconfig.json | 3 +-- pnpm-lock.yaml | 30 +++++++++++++++--------------- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/packages/cli/src/constants.ts b/packages/cli/src/constants.ts index 9242d437e..42f058b85 100644 --- a/packages/cli/src/constants.ts +++ b/packages/cli/src/constants.ts @@ -1,4 +1,4 @@ -import { version } from '../package.json'; +import { version } from './version'; export const GRAPH_CLI_SHARED_HEADERS = { 'User-Agent': `@graphprotocol/graph-cli@${version}` as const, diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json index c34b8ba07..7f9dea828 100644 --- a/packages/cli/tsconfig.json +++ b/packages/cli/tsconfig.json @@ -12,8 +12,7 @@ "useUnknownInCatchVariables": false, "declaration": true, "skipLibCheck": true, - "allowJs": true, - "resolveJsonModule": true + "allowJs": true }, "include": ["./src", "./tests"], "exclude": ["./tests/cli/init", "./tests/cli/validation"] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef2530964..adc54c415 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,9 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + patchedDependencies: oclif@3.8.1: hash: rxmtqiusuyruv7tkwux5gvotbm @@ -49,7 +53,7 @@ importers: examples/arweave-blocks-transactions: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -65,7 +69,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -84,7 +88,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -103,7 +107,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -122,7 +126,7 @@ importers: version: 6.26.0 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -174,7 +178,7 @@ importers: version: 5.0.4 devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -192,7 +196,7 @@ importers: examples/ethereum-gravatar: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -213,7 +217,7 @@ importers: examples/matic-lens-protocol-posts-subgraph: dependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -226,7 +230,7 @@ importers: examples/near-blocks: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -235,7 +239,7 @@ importers: examples/near-receipts: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli '@graphprotocol/graph-ts': specifier: 0.31.0 @@ -244,7 +248,7 @@ importers: examples/substreams-powered-subgraph: devDependencies: '@graphprotocol/graph-cli': - specifier: 0.60.0 + specifier: 0.61.0 version: link:../../packages/cli packages/cli: @@ -14831,7 +14835,3 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} dev: true - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false