@graphprotocol/graph-cli 0.37.5 → 0.37.6-alpha-20230118194231-437f5c5

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,20 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
+ ## 0.37.6-alpha-20230118194231-437f5c5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1039](https://github.com/graphprotocol/graph-cli/pull/1039)
8
+ [`eff6d76`](https://github.com/graphprotocol/graph-cli/commit/eff6d76ea8bda4fd5287c22763ed6e2e646d2c77)
9
+ Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
10
+
11
+ - Removed dependency [`pkginfo@0.4.1` ↗︎](https://www.npmjs.com/package/pkginfo/v/0.4.1) (from
12
+ `dependencies`)
13
+
14
+ - [#1039](https://github.com/graphprotocol/graph-cli/pull/1039)
15
+ [`2b2d603`](https://github.com/graphprotocol/graph-cli/commit/2b2d6033f3e9a62a916433cba12b2e960725ce5f)
16
+ Thanks [@enisdenjo](https://github.com/enisdenjo)! - Use package.json to get package version
17
+
3
18
  ## 0.37.5
4
19
 
5
20
  ### Patch Changes
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const fs_1 = __importDefault(require("fs"));
7
+ const path_1 = __importDefault(require("path"));
6
8
  const gluegun_1 = require("gluegun");
7
9
  const prettier_1 = __importDefault(require("prettier"));
8
10
  const subgraph_1 = require("../command-helpers/subgraph");
@@ -14,7 +16,11 @@ const GRAPH_CLI_VERSION = process.env.GRAPH_CLI_TESTS
14
16
  // graph-cli for the tests using `npm link` instead of fetching from npm.
15
17
  undefined
16
18
  : // For scaffolding real subgraphs
17
- String(module.exports.version);
19
+ JSON.parse(fs_1.default
20
+ .readFileSync(
21
+ // works even when bundled/built because the path to package.json is the same
22
+ path_1.default.join(__dirname, '..', '..', 'package.json'))
23
+ .toString()).version;
18
24
  class Scaffold {
19
25
  protocol;
20
26
  abi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.37.5",
3
+ "version": "0.37.6-alpha-20230118194231-437f5c5",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "bin": {
@@ -29,7 +29,6 @@
29
29
  "jayson": "3.6.6",
30
30
  "js-yaml": "3.13.1",
31
31
  "node-fetch": "2.6.0",
32
- "pkginfo": "0.4.1",
33
32
  "prettier": "1.19.1",
34
33
  "request": "2.88.2",
35
34
  "semver": "7.3.5",