@graphprotocol/graph-cli 0.37.6-alpha-20230118194231-437f5c5 → 0.37.6-alpha-20230118200324-8f0e44a

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,6 +1,6 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.37.6-alpha-20230118194231-437f5c5
3
+ ## 0.37.6-alpha-20230118200324-8f0e44a
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -3,11 +3,10 @@ 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"));
8
6
  const gluegun_1 = require("gluegun");
9
7
  const prettier_1 = __importDefault(require("prettier"));
10
8
  const subgraph_1 = require("../command-helpers/subgraph");
9
+ const version_1 = require("../version");
11
10
  const mapping_1 = require("./mapping");
12
11
  const schema_1 = require("./schema");
13
12
  const tests_1 = require("./tests");
@@ -16,11 +15,7 @@ const GRAPH_CLI_VERSION = process.env.GRAPH_CLI_TESTS
16
15
  // graph-cli for the tests using `npm link` instead of fetching from npm.
17
16
  undefined
18
17
  : // For scaffolding real subgraphs
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
+ version_1.version;
24
19
  class Scaffold {
25
20
  protocol;
26
21
  abi;
@@ -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-20230118194231-437f5c5",
3
+ "version": "0.37.6-alpha-20230118200324-8f0e44a",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "bin": {