Skip to content

Commit 31172b9

Browse files
committed
chore: use dips-proto 0.2.2
1 parent 22a34b3 commit 31172b9

File tree

8 files changed

+12
-40
lines changed

8 files changed

+12
-40
lines changed

Diff for: packages/indexer-agent/jest.config.js

-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ module.exports = {
1111
preset: 'ts-jest',
1212
testEnvironment: 'node',
1313
testPathIgnorePatterns: ['/node_modules/', '/dist/', '.yalc'],
14-
transformIgnorePatterns: [
15-
// Transform @graphprotocol packages but ignore other node_modules
16-
'/node_modules/(?!(@graphprotocol)/)'
17-
],
18-
transform: {
19-
'^.+\\.ts$': ['ts-jest'] // Only transform .ts files
20-
},
2114
globals: {
2215
__DATABASE__: {
2316
host:

Diff for: packages/indexer-agent/tsconfig.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
"composite": true,
1313
"lib": ["es2015", "es6", "esnext.asynciterable", "dom", "ES2020.Promise"]
1414
},
15-
"include": [
16-
"src/**/*.ts",
17-
"src/**/*.d.ts",
18-
"node_modules/@graphprotocol/dips-proto/**/*.ts"
19-
],
15+
"include": ["src/**/*.ts", "src/**/*.d.ts"],
2016
"exclude": ["src/**/__tests__/*.ts"],
2117
"references": [{ "path": "../indexer-common" }]
2218
}

Diff for: packages/indexer-cli/jest.config.js

-12
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ module.exports = {
1313
// The glob patterns Jest uses to detect test files
1414
testMatch: ['**/?(*.)+(spec|test).ts?(x)'],
1515
testPathIgnorePatterns: ['/node_modules/', '/dist/', '.yalc'],
16-
transformIgnorePatterns: [
17-
// Transform @graphprotocol packages but ignore other node_modules
18-
'/node_modules/(?!(@graphprotocol)/)'
19-
],
20-
transform: {
21-
'^.+\\.ts$': ['ts-jest'] // Only transform .ts files
22-
},
2316
testTimeout: 60000,
2417
globals: {
2518
__DATABASE__: {
@@ -37,9 +30,4 @@ module.exports = {
3730
},
3831
__LOG_LEVEL__: process.env.LOG_LEVEL || 'info',
3932
},
40-
moduleNameMapper: {
41-
// Map indexer-common imports to source files during tests
42-
'@graphprotocol/indexer-common/(.*)': '<rootDir>/../indexer-common/src/$1',
43-
'@graphprotocol/dips-proto/(.*)': '<rootDir>/../node_modules/@graphprotocol/dips-proto/$1'
44-
},
4533
}

Diff for: packages/indexer-cli/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"src/*.ts",
1717
"src/commands/*.ts",
1818
"src/commands/**/*.ts",
19-
"src/commands/**/**/*.ts",
20-
"node_modules/@graphprotocol/dips-proto/**/*.ts"
19+
"src/commands/**/**/*.ts"
2120
],
2221
"exclude": ["src/commands/__tests__/*.ts"],
2322
"references": [{ "path": "../indexer-common" }]

Diff for: packages/indexer-common/jest.config.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ module.exports = {
1111
forceExit: true,
1212
testEnvironment: 'node',
1313
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/.yalc', 'util.ts'],
14-
transformIgnorePatterns: [
15-
// Transform @graphprotocol packages but ignore other node_modules
16-
'/node_modules/(?!(@graphprotocol)/)'
17-
],
18-
transform: {
19-
'^.+\\.ts$': ['ts-jest'] // Only transform .ts files
20-
},
14+
transformIgnorePatterns: ['!node_modules/'],
2115
globals: {
2216
__DATABASE__: {
2317
host: process.env.POSTGRES_TEST_HOST || bail('POSTGRES_TEST_HOST is not defined'),

Diff for: packages/indexer-common/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@bufbuild/protobuf": "2.2.3",
2626
"@graphprotocol/common-ts": "2.0.11",
2727
"@graphprotocol/cost-model": "0.1.18",
28-
"@graphprotocol/dips-proto": "0.2.1",
28+
"@graphprotocol/dips-proto": "0.2.2",
2929
"@grpc/grpc-js": "^1.12.6",
3030
"@semiotic-labs/tap-contracts-bindings": "^1.2.1",
3131
"@thi.ng/heaps": "1.2.38",

Diff for: packages/indexer-common/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
],
2121
"resolveJsonModule": true
2222
},
23-
"include": ["src/**/*.ts", "node_modules/@graphprotocol/dips-proto/**/*.ts"],
23+
"include": ["src/**/*.ts"],
2424
"exclude": [],
2525
"references": []
2626
}

Diff for: yarn.lock

+7-5
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
330330
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
331331

332-
"@bufbuild/[email protected]":
332+
"@bufbuild/[email protected]", "@bufbuild/protobuf@^2.2.3":
333333
version "2.2.3"
334334
resolved "https://registry.yarnpkg.com/@bufbuild/protobuf/-/protobuf-2.2.3.tgz#9cd136f6b687e63e9b517b3a54211ece942897ee"
335335
integrity sha512-tFQoXHJdkEOSwj5tRIZSPNUuXK3RaR7T1nUrPgbYX1pUbvqqaaZAsfo+NXBPsz5rZMSKVFrgK1WL8Q/MSLvprg==
@@ -798,10 +798,12 @@
798798
"@mapbox/node-pre-gyp" "1.0.11"
799799
cargo-cp-artifact "0.1.8"
800800

801-
"@graphprotocol/[email protected]":
802-
version "0.2.1"
803-
resolved "https://registry.yarnpkg.com/@graphprotocol/dips-proto/-/dips-proto-0.2.1.tgz#e65b6a8dfdefb5604da96da4eaaeb0fe096a0627"
804-
integrity sha512-1+6+M7P/xsmEHPRtPX5tO6yCdCDkEvg+Owc0/GJfKpmJmFdN+hxYDvAZ4GD1drLilsyxR/iLQxEvHHQsU3FoxA==
801+
"@graphprotocol/[email protected]":
802+
version "0.2.2"
803+
resolved "https://registry.yarnpkg.com/@graphprotocol/dips-proto/-/dips-proto-0.2.2.tgz#3beece3e768b8a7d64bace959e0bf15a91c3ef53"
804+
integrity sha512-pAcnHnZ3qs2NrjYEUm8sahY0MBaV5KXfQVg9wk6f3LlClS1hK3a9aqUCI0CUriuALWbTwceeGgiKv8UIrJx4GA==
805+
dependencies:
806+
"@bufbuild/protobuf" "^2.2.3"
805807

806808
"@graphprotocol/[email protected]":
807809
version "0.7.1"

0 commit comments

Comments
 (0)