@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 +9 -0
- package/dist/compiler/index.js +2 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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
|
package/dist/compiler/index.js
CHANGED
|
@@ -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 => {
|
package/oclif.manifest.json
CHANGED