Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tricky-pumas-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': patch
---

fix bug with loud errors in `graph test`
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches:
- 'main'
pull_request_target:
pull_request:

jobs:
lint:
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"version": "0.94.0",
"type": "module",
"description": "CLI for building for and deploying to The Graph",
"repository": {
"type": "git",
"url": "https://github.com/graphprotocol/graph-tooling.git",
"directory": "packages/cli"
},
"license": "(Apache-2.0 OR MIT)",
"engines": {
"node": ">=20.18.1"
Expand Down Expand Up @@ -75,11 +80,6 @@
"access": "public",
"provenance": true
},
"repository": {
"type": "git",
"url": "https://github.com/graphprotocol/graph-tooling.git",
"directory": "packages/cli"
},
"oclif": {
"bin": "graph",
"commands": "./dist/commands",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/commands/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ export default class TestCommand extends Command {
}

if (opts.docker) {
runDocker.bind(this)(datasource, opts);
await runDocker.bind(this)(datasource, opts);
} else {
runBinary.bind(this)(datasource, opts);
await runBinary.bind(this)(datasource, opts);
}
}
}
Expand Down Expand Up @@ -190,7 +190,7 @@ async function runBinary(
const child = spawn(binPath, args, { stdio: 'inherit' });
const [code] = await events.once(child, 'exit');
if (code !== 0) {
this.error('Matchstick failed', { exit: 1 });
this.error('Matchstick exited with an error', { exit: 1 });
}
}

Expand Down
16 changes: 8 additions & 8 deletions packages/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"name": "@graphprotocol/graph-ts",
"version": "0.37.0",
"description": "TypeScript/AssemblyScript library for writing subgraph mappings for The Graph",
"repository": {
"type": "git",
"url": "https://github.com/graphprotocol/graph-tooling.git",
"directory": "packages/ts"
},
"main": "index.ts",
"module": "index.ts",
"types": "index.ts",
Expand All @@ -11,16 +16,11 @@
"lint": "prettier -c **/*.{js,mjs,ts}",
"test": "node test/test.mjs"
},
"dependencies": {
"assemblyscript": "0.27.31"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"repository": {
"type": "git",
"url": "https://github.com/graphprotocol/graph-tooling.git",
"directory": "packages/ts"
},
"dependencies": {
"assemblyscript": "0.27.31"
}
}
Loading