@graphprotocol/graph-cli 0.51.0 → 0.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
+ ## 0.51.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1369](https://github.com/graphprotocol/graph-tooling/pull/1369)
8
+ [`18e5c29`](https://github.com/graphprotocol/graph-tooling/commit/18e5c29fdd83d17614d2ce2207299b8d78c7949f)
9
+ Thanks [@azf20](https://github.com/azf20)! - fix: always create output directory on building a
10
+ subgraph
11
+
3
12
  ## 0.51.0
4
13
 
5
14
  ### Minor Changes
@@ -350,6 +350,8 @@ class Compiler {
350
350
  }
351
351
  async writeSubgraphToOutputDirectory(protocol, subgraph) {
352
352
  const displayDir = `${this.displayPath(this.options.outputDir)}${toolbox.filesystem.separator}`;
353
+ // ensure that the output directory exists
354
+ fs_extra_1.default.mkdirsSync(this.options.outputDir);
353
355
  return await (0, spinner_1.withSpinner)(`Write compiled subgraph to ${displayDir}`, `Failed to write compiled subgraph to ${displayDir}`, `Warnings while writing compiled subgraph to ${displayDir}`, async (spinner) => {
354
356
  // Copy schema and update its path
355
357
  subgraph = subgraph.updateIn(['schema', 'file'], schemaFile => {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.51.0",
2
+ "version": "0.51.1",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {