@graphprotocol/graph-cli 0.79.1 → 0.79.2

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.79.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1698](https://github.com/graphprotocol/graph-tooling/pull/1698)
8
+ [`c8ec890`](https://github.com/graphprotocol/graph-tooling/commit/c8ec890cb13bb109bb97387e4819c948d97a079a)
9
+ Thanks [@soilking](https://github.com/soilking)! - Fix build files being placed outside the build
10
+ directory
11
+
3
12
  ## 0.79.1
4
13
 
5
14
  ### Patch Changes
@@ -186,8 +186,8 @@ class Compiler {
186
186
  }
187
187
  _writeSubgraphFile(maybeRelativeFile, data, sourceDir, targetDir, spinner) {
188
188
  const absoluteSourceFile = path_1.default.resolve(sourceDir, maybeRelativeFile);
189
- const relativeSourceFile = path_1.default.relative(sourceDir, absoluteSourceFile);
190
- const targetFile = path_1.default.join(targetDir, relativeSourceFile);
189
+ const baseName = path_1.default.basename(absoluteSourceFile);
190
+ const targetFile = path_1.default.join(targetDir, baseName);
191
191
  (0, spinner_1.step)(spinner, 'Write subgraph file', this.displayPath(targetFile));
192
192
  fs_extra_1.default.mkdirsSync(path_1.default.dirname(targetFile));
193
193
  fs_extra_1.default.writeFileSync(targetFile, data);
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.79.1",
2
+ "version": "0.79.2",
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.79.1",
3
+ "version": "0.79.2",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {