@graphprotocol/graph-cli 0.37.6-alpha-20230118195207-f3c4c5e → 0.37.6

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,14 +1,25 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.37.6-alpha-20230118195207-f3c4c5e
3
+ ## 0.37.6
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - [#1039](https://github.com/graphprotocol/graph-cli/pull/1039)
8
+ [`accefb6`](https://github.com/graphprotocol/graph-cli/commit/accefb637bf1c1db64f63b32a18c291574aa4974)
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
+
7
14
  - [#1040](https://github.com/graphprotocol/graph-cli/pull/1040)
8
- [`948c2a5`](https://github.com/graphprotocol/graph-cli/commit/948c2a534edfea88bab6010f251e51f67c90f257)
15
+ [`5fd1e9c`](https://github.com/graphprotocol/graph-cli/commit/5fd1e9c00c85db4b0c65e37ba0c0b09ea034bb96)
9
16
  Thanks [@enisdenjo](https://github.com/enisdenjo)! - Target Node 14 and specify engine in
10
17
  package.json
11
18
 
19
+ - [#1039](https://github.com/graphprotocol/graph-cli/pull/1039)
20
+ [`accefb6`](https://github.com/graphprotocol/graph-cli/commit/accefb637bf1c1db64f63b32a18c291574aa4974)
21
+ Thanks [@enisdenjo](https://github.com/enisdenjo)! - Use package.json to get package version
22
+
12
23
  ## 0.37.5
13
24
 
14
25
  ### Patch Changes
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const gluegun_1 = require("gluegun");
7
7
  const prettier_1 = __importDefault(require("prettier"));
8
8
  const subgraph_1 = require("../command-helpers/subgraph");
9
+ const version_1 = require("../version");
9
10
  const mapping_1 = require("./mapping");
10
11
  const schema_1 = require("./schema");
11
12
  const tests_1 = require("./tests");
@@ -14,7 +15,7 @@ const GRAPH_CLI_VERSION = process.env.GRAPH_CLI_TESTS
14
15
  // graph-cli for the tests using `npm link` instead of fetching from npm.
15
16
  undefined
16
17
  : // For scaffolding real subgraphs
17
- String(module.exports.version);
18
+ version_1.version;
18
19
  class Scaffold {
19
20
  constructor(options) {
20
21
  this.protocol = options.protocol;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.version = void 0;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = __importDefault(require("path"));
9
+ const packageJson = JSON.parse(fs_1.default
10
+ .readFileSync(
11
+ // works even when bundled/built because the path to package.json is the same
12
+ path_1.default.join(__dirname, '..', 'package.json'))
13
+ .toString());
14
+ exports.version = packageJson.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.37.6-alpha-20230118195207-f3c4c5e",
3
+ "version": "0.37.6",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {
@@ -32,7 +32,6 @@
32
32
  "jayson": "3.6.6",
33
33
  "js-yaml": "3.13.1",
34
34
  "node-fetch": "2.6.0",
35
- "pkginfo": "0.4.1",
36
35
  "prettier": "1.19.1",
37
36
  "request": "2.88.2",
38
37
  "semver": "7.3.5",