@graphprotocol/graph-cli 0.48.0-alpha-20230425150650-f106dbf → 0.48.0-alpha-20230426151222-72ea337
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 +4 -5
- package/bin/run +6 -0
- package/bin/run.cmd +3 -0
- package/dist/codegen/schema.js +0 -3
- package/oclif.manifest.json +1 -1
- package/package.json +5 -3
- package/dist/bin.d.ts +0 -2
- package/dist/bin.js +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.48.0-alpha-
|
|
3
|
+
## 0.48.0-alpha-20230426151222-72ea337
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
8
|
-
[`
|
|
9
|
-
Thanks [@
|
|
10
|
-
codegen
|
|
7
|
+
- [#1257](https://github.com/graphprotocol/graph-tooling/pull/1257)
|
|
8
|
+
[`72ea337`](https://github.com/graphprotocol/graph-tooling/commit/72ea33795d030bc3d9733c221383e6367cc36501)
|
|
9
|
+
Thanks [@enisdenjo](https://github.com/enisdenjo)! - Bundle CLI as binary
|
|
11
10
|
|
|
12
11
|
## 0.47.1
|
|
13
12
|
|
package/bin/run
ADDED
package/bin/run.cmd
ADDED
package/dist/codegen/schema.js
CHANGED
|
@@ -138,9 +138,6 @@ class SchemaCodeGenerator {
|
|
|
138
138
|
\`Entities of type ${entityName} must have an ID of type ${idField.gqlTypeName()} but the id '\${id.displayData()}' is of type \${id.displayKind()}\`)
|
|
139
139
|
store.set('${entityName}', ${idField.tsValueToString()}, this)
|
|
140
140
|
}`),
|
|
141
|
-
tsCodegen.staticMethod('loadInBlock', [tsCodegen.param('id', tsCodegen.namedType(idField.typeName()))], tsCodegen.nullableType(tsCodegen.namedType(entityName)), `
|
|
142
|
-
return changetype<${entityName} | null>(store.get_in_block('${entityName}', ${idField.tsToString()}))
|
|
143
|
-
`),
|
|
144
141
|
tsCodegen.staticMethod('load', [tsCodegen.param('id', tsCodegen.namedType(idField.typeName()))], tsCodegen.nullableType(tsCodegen.namedType(entityName)), `
|
|
145
142
|
return changetype<${entityName} | null>(store.get('${entityName}', ${idField.tsToString()}))
|
|
146
143
|
`),
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphprotocol/graph-cli",
|
|
3
|
-
"version": "0.48.0-alpha-
|
|
3
|
+
"version": "0.48.0-alpha-20230426151222-72ea337",
|
|
4
4
|
"description": "CLI for building for and deploying to The Graph",
|
|
5
5
|
"license": "(Apache-2.0 OR MIT)",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=14"
|
|
8
8
|
},
|
|
9
9
|
"bin": {
|
|
10
|
-
"graph": "
|
|
10
|
+
"graph": "bin/run"
|
|
11
11
|
},
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"files": [
|
|
14
14
|
"CHANGELOG.md",
|
|
15
|
+
"bin",
|
|
15
16
|
"dist",
|
|
16
17
|
"oclif.manifest.json",
|
|
17
18
|
"README.md"
|
|
@@ -73,7 +74,8 @@
|
|
|
73
74
|
]
|
|
74
75
|
},
|
|
75
76
|
"scripts": {
|
|
76
|
-
"build": "tsc -b tsconfig.build.json && oclif manifest && copyfiles -u 1 src/**/*.graphql dist/
|
|
77
|
+
"build": "tsc -b tsconfig.build.json && oclif manifest && oclif readme && copyfiles -u 1 src/**/*.graphql dist/",
|
|
78
|
+
"oclif:pack": "npm pack && pnpm oclif pack tarballs --no-xz && node scripts/rename-tarballs.mjs",
|
|
77
79
|
"test": "jest --verbose",
|
|
78
80
|
"test:add": "jest tests/cli/add.test.ts --verbose",
|
|
79
81
|
"test:init": "jest tests/cli/init.test.ts --verbose",
|
package/dist/bin.d.ts
DELETED
package/dist/bin.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
|
-
};
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
const oclif = __importStar(require("@oclif/core"));
|
|
31
|
-
const flush_1 = __importDefault(require("@oclif/core/flush"));
|
|
32
|
-
// @ts-expect-error Handle is a pure JS file
|
|
33
|
-
const handle_1 = __importDefault(require("@oclif/core/handle"));
|
|
34
|
-
oclif.run().then(flush_1.default).catch(handle_1.default);
|