@hygraph/cli 0.0.1 → 0.0.3

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.
@@ -1,5 +1,11 @@
1
1
  //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
3
9
  var __exportAll = (all, no_symbols) => {
4
10
  let target = {};
5
11
  for (var name in all) __defProp(target, name, {
@@ -9,5 +15,19 @@ var __exportAll = (all, no_symbols) => {
9
15
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
16
  return target;
11
17
  };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
+ key = keys[i];
21
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
22
+ get: ((k) => from[k]).bind(null, key),
23
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
24
+ });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
29
+ value: mod,
30
+ enumerable: true
31
+ }) : target, mod));
12
32
  //#endregion
13
- export { __exportAll as t };
33
+ export { __exportAll as n, __toESM as r, __commonJSMin as t };
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region src/version.ts
2
- const VERSION = "0.0.1";
2
+ const VERSION = "0.0.3";
3
3
  //#endregion
4
4
  export { VERSION as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hygraph/cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Manage your Hygraph schema as code",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Hygraph GmbH",
@@ -26,17 +26,32 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "publishConfig": {
29
- "access": "public"
29
+ "access": "restricted"
30
+ },
31
+ "dependencies": {
32
+ "jiti": "^2.7.0",
33
+ "oxfmt": "0.68.0"
30
34
  },
31
35
  "devDependencies": {
32
36
  "@changesets/cli": "^2.29.7",
37
+ "@graphql-codegen/cli": "^7.4.1",
38
+ "@graphql-codegen/typed-document-node": "^7.1.0",
39
+ "@graphql-codegen/typescript": "^6.1.0",
40
+ "@graphql-codegen/typescript-operations": "^6.1.6",
41
+ "@graphql-typed-document-node/core": "^3.2.0",
42
+ "@paralleldrive/cuid2": "^3.3.0",
33
43
  "@types/node": "^22.18.0",
44
+ "canonicalize": "^5.1.0",
34
45
  "commander": "^15.0.0",
35
- "oxfmt": "^0.68.0",
46
+ "graphql": "^16.14.2",
47
+ "oxlint": "^1.83.0",
48
+ "oxlint-tsgolint": "^7.0.2001",
49
+ "picocolors": "^1.1.1",
36
50
  "tsdown": "^0.23.0",
37
- "typescript": "^5.9.3",
51
+ "typescript": "^7.0.2",
38
52
  "unrun": "^0.3.1",
39
- "vitest": "^3.2.4"
53
+ "vitest": "^3.2.4",
54
+ "zod": "^4.6.5"
40
55
  },
41
56
  "engines": {
42
57
  "node": ">=22",
@@ -46,6 +61,8 @@
46
61
  "build": "tsdown",
47
62
  "cli": "node bin/hygraph.js",
48
63
  "typecheck": "tsc",
64
+ "lint": "oxlint --deny-warnings --type-aware .",
65
+ "codegen": "graphql-codegen",
49
66
  "test": "vitest",
50
67
  "test:ci": "vitest --run",
51
68
  "format": "oxfmt",