@hygraph/cli 0.0.0 → 0.0.2

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.
@@ -0,0 +1,213 @@
1
+ //#region src/define/fields/asset.d.ts
2
+ /** A reference to the Asset model. Its reverse is hidden and never exposed. */
3
+ declare function asset$1(_options: unknown): never;
4
+ //#endregion
5
+ //#region src/define/fields/boolean.d.ts
6
+ /** True or false. Can drive a `visibilityCondition`. */
7
+ declare function boolean(_options: unknown): never;
8
+ //#endregion
9
+ //#region src/define/fields/color.d.ts
10
+ /** A colour value. */
11
+ declare function color(_options: unknown): never;
12
+ //#endregion
13
+ //#region src/define/fields/component.d.ts
14
+ /** An instance of one component. */
15
+ declare function component$1(_options: unknown): never;
16
+ //#endregion
17
+ //#region src/define/fields/componentUnion.d.ts
18
+ /** A choice of components. Members are replaced wholesale on update. */
19
+ declare function componentUnion(_options: unknown): never;
20
+ //#endregion
21
+ //#region src/define/fields/date.d.ts
22
+ /** A date. `initialValue` is an ISO string. */
23
+ declare function date(_options: unknown): never;
24
+ //#endregion
25
+ //#region src/define/fields/dateTime.d.ts
26
+ /** A date and time. `initialValue` is an ISO string. */
27
+ declare function dateTime(_options: unknown): never;
28
+ //#endregion
29
+ //#region src/define/fields/enumeration.d.ts
30
+ /** A value from an enumeration. Takes the enumeration itself, not a lambda. */
31
+ declare function enumeration$1(_options: unknown): never;
32
+ //#endregion
33
+ //#region src/define/fields/float.d.ts
34
+ /** Decimal number. `validations`: range, listItemCount. */
35
+ declare function float(_options: unknown): never;
36
+ //#endregion
37
+ //#region src/define/fields/int.d.ts
38
+ /** Whole number. `validations`: range, listItemCount. */
39
+ declare function int(_options: unknown): never;
40
+ //#endregion
41
+ //#region src/define/fields/json.d.ts
42
+ /** Arbitrary JSON. */
43
+ declare function json(_options: unknown): never;
44
+ //#endregion
45
+ //#region src/define/fields/location.d.ts
46
+ /** A latitude and longitude. */
47
+ declare function location(_options: unknown): never;
48
+ //#endregion
49
+ //#region src/define/fields/markdown.d.ts
50
+ /** The Markdown editor. Same validations as `singleLine`. */
51
+ declare function markdown(_options: unknown): never;
52
+ //#endregion
53
+ //#region src/define/fields/multiLine.d.ts
54
+ /** The text area editor. Same validations as `singleLine`. */
55
+ declare function multiLine(_options: unknown): never;
56
+ //#endregion
57
+ //#region src/define/fields/referenceOneWay.d.ts
58
+ /** Visible from this side only. Hygraph keeps a hidden reverse that is never diffed. Allowed on components. */
59
+ declare function referenceOneWay(_options: unknown): never;
60
+ //#endregion
61
+ //#region src/define/fields/referenceTwoWay.d.ts
62
+ /** Both sides declared. The partner on `to` must point back through `reverse`. Models only. */
63
+ declare function referenceTwoWay(_options: unknown): never;
64
+ //#endregion
65
+ //#region src/define/fields/referenceUnion.d.ts
66
+ /** A reference to several models. On models every member declares `unionMember`. */
67
+ declare function referenceUnion(_options: unknown): never;
68
+ //#endregion
69
+ //#region src/define/fields/remote.d.ts
70
+ /** A field resolved from a remote source. `visibility` defaults to READ_ONLY. */
71
+ declare function remote(_options: unknown): never;
72
+ //#endregion
73
+ //#region src/define/fields/richText.d.ts
74
+ /** Rich text. `embeds` enables embedding; `actions` picks the toolbar. */
75
+ declare function richText(_options: unknown): never;
76
+ //#endregion
77
+ //#region src/define/fields/singleLine.d.ts
78
+ /** One line of text. `validations`: characters, matches, notMatches, listItemCount. */
79
+ declare function singleLine(_options: unknown): never;
80
+ //#endregion
81
+ //#region src/define/fields/slug.d.ts
82
+ /** The slug editor. Adds `lowercase`, `autoGenerate` and `template`, e.g. `"{title}"`. */
83
+ declare function slug(_options: unknown): never;
84
+ //#endregion
85
+ //#region src/define/fields/string.d.ts
86
+ /** Text rendered by an installed app's element. `renderer` is required. */
87
+ declare function string(_options: unknown): never;
88
+ //#endregion
89
+ //#region src/define/fields/taxonomy.d.ts
90
+ /** A node from a taxonomy. `localized` is not available in v1. */
91
+ declare function taxonomy$1(_options: unknown): never;
92
+ //#endregion
93
+ //#region src/define/fields/unionMember.d.ts
94
+ /** The slot a union's member model declares. All members share one `apiId`. Models only. */
95
+ declare function unionMember(_options: unknown): never;
96
+ //#endregion
97
+ //#region src/define/fields/vector.d.ts
98
+ /** An embedding. `dimension` is required (1 to 3072); `index` is refused above 2000. */
99
+ declare function vector(_options: unknown): never;
100
+ declare namespace index_d_exports$2 {
101
+ export { asset$1 as asset, boolean, color, component$1 as component, componentUnion, date, dateTime, enumeration$1 as enumeration, float, int, json, location, markdown, multiLine, referenceOneWay, referenceTwoWay, referenceUnion, remote, richText, singleLine, slug, string, taxonomy$1 as taxonomy, unionMember, vector };
102
+ }
103
+ //#endregion
104
+ //#region src/define/resources/component.d.ts
105
+ /** Same options as `model` minus `sidebar`; no two-way references or union members. */
106
+ declare function component(_options: unknown): never;
107
+ //#endregion
108
+ //#region src/define/resources/enumeration.d.ts
109
+ declare function enumeration(_options: unknown): never;
110
+ //#endregion
111
+ //#region src/define/resources/model.d.ts
112
+ type ModelInput = {
113
+ apiId: string;
114
+ apiIdPlural: string;
115
+ displayName: string;
116
+ description?: string;
117
+ };
118
+ /**
119
+ * What `define.model` hands back: the input with every default filled in.
120
+ * Plain data in the same shape the user wrote, not the IR — the canonical
121
+ * form is built from these later and never reaches the config.
122
+ */
123
+ type Model = {
124
+ __typename: "Model";
125
+ apiId: string;
126
+ apiIdPlural: string;
127
+ displayName: string;
128
+ description: string | null;
129
+ };
130
+ /**
131
+ * One model.
132
+ *
133
+ * Nothing here is validated. Format rules, `apiIdPlural` against `apiId` and
134
+ * uniqueness are plan-time checks, reported together rather than thrown one
135
+ * at a time while the config loads.
136
+ */
137
+ declare function model(input: ModelInput): Model;
138
+ //#endregion
139
+ //#region src/define/resources/environment.d.ts
140
+ type EnvironmentInput = {
141
+ models: Model[];
142
+ };
143
+ type Environment = {
144
+ __typename: "Environment";
145
+ models: Model[];
146
+ };
147
+ /**
148
+ * One environment: typed arrays per resource kind. The what.
149
+ *
150
+ * Ordering, keying and positions are not decided here. This returns the
151
+ * models as written; `convertToIR` turns them into the canonical form.
152
+ */
153
+ declare function environment(input: EnvironmentInput): Environment;
154
+ //#endregion
155
+ //#region src/define/resources/graphqlRemoteSource.d.ts
156
+ declare function graphqlRemoteSource(_options: unknown): never;
157
+ //#endregion
158
+ //#region src/define/resources/locale.d.ts
159
+ declare function locale(_options: unknown): never;
160
+ //#endregion
161
+ //#region src/define/resources/restRemoteSource.d.ts
162
+ declare function restRemoteSource(_options: unknown): never;
163
+ //#endregion
164
+ //#region src/define/resources/stage.d.ts
165
+ declare function stage(_options: unknown): never;
166
+ //#endregion
167
+ //#region src/define/resources/target.d.ts
168
+ type TargetInput = {
169
+ name: string;
170
+ project: string;
171
+ environment: string;
172
+ /**
173
+ * The management API of the project's region, such as
174
+ * `https://management-eu-central-1.hygraph.com/graphql`.
175
+ */
176
+ endpoint: string;
177
+ token: string;
178
+ apply: Environment;
179
+ };
180
+ type Target = {
181
+ __typename: "Target";
182
+ name: string;
183
+ project: string;
184
+ environment: string;
185
+ endpoint: string;
186
+ token: string;
187
+ apply: Environment;
188
+ };
189
+ /**
190
+ * One environment of one project, where to reach it and the token to do so,
191
+ * and the environment definition to apply there. The where.
192
+ */
193
+ declare function target(input: TargetInput): Target;
194
+ //#endregion
195
+ //#region src/define/resources/taxonomy.d.ts
196
+ declare function taxonomy(_options: unknown): never;
197
+ declare namespace index_d_exports {
198
+ export { component, enumeration, environment, index_d_exports$2 as field, graphqlRemoteSource, locale, model, restRemoteSource, stage, target, taxonomy };
199
+ }
200
+ //#endregion
201
+ //#region src/define/system/asset.d.ts
202
+ declare function asset(_options?: unknown): never;
203
+ //#endregion
204
+ //#region src/define/system/query.d.ts
205
+ declare function query(_options?: unknown): never;
206
+ //#endregion
207
+ //#region src/define/system/segment.d.ts
208
+ declare function segment(_options?: unknown): never;
209
+ declare namespace index_d_exports$1 {
210
+ export { asset, query, segment };
211
+ }
212
+ //#endregion
213
+ export { index_d_exports as define, index_d_exports$1 as system };
package/dist/define.js ADDED
@@ -0,0 +1,315 @@
1
+ import { t as __exportAll } from "./rolldown-runtime.js";
2
+ import { t as isEmpty } from "./is-empty.js";
3
+ //#region src/define/not-implemented.ts
4
+ /**
5
+ * Every builder is declared so the authoring surface is fixed, but none of
6
+ * them are implemented yet. They throw rather than returning a half-shaped
7
+ * object: a config that silently produced the wrong schema would be worse
8
+ * than one that refuses to load.
9
+ */
10
+ function notImplemented(builder) {
11
+ throw new Error(`${builder} is not implemented yet`);
12
+ }
13
+ //#endregion
14
+ //#region src/define/fields/asset.ts
15
+ /** A reference to the Asset model. Its reverse is hidden and never exposed. */
16
+ function asset$1(_options) {
17
+ return notImplemented("define.field.asset");
18
+ }
19
+ //#endregion
20
+ //#region src/define/fields/boolean.ts
21
+ /** True or false. Can drive a `visibilityCondition`. */
22
+ function boolean(_options) {
23
+ return notImplemented("define.field.boolean");
24
+ }
25
+ //#endregion
26
+ //#region src/define/fields/color.ts
27
+ /** A colour value. */
28
+ function color(_options) {
29
+ return notImplemented("define.field.color");
30
+ }
31
+ //#endregion
32
+ //#region src/define/fields/component.ts
33
+ /** An instance of one component. */
34
+ function component$1(_options) {
35
+ return notImplemented("define.field.component");
36
+ }
37
+ //#endregion
38
+ //#region src/define/fields/componentUnion.ts
39
+ /** A choice of components. Members are replaced wholesale on update. */
40
+ function componentUnion(_options) {
41
+ return notImplemented("define.field.componentUnion");
42
+ }
43
+ //#endregion
44
+ //#region src/define/fields/date.ts
45
+ /** A date. `initialValue` is an ISO string. */
46
+ function date(_options) {
47
+ return notImplemented("define.field.date");
48
+ }
49
+ //#endregion
50
+ //#region src/define/fields/dateTime.ts
51
+ /** A date and time. `initialValue` is an ISO string. */
52
+ function dateTime(_options) {
53
+ return notImplemented("define.field.dateTime");
54
+ }
55
+ //#endregion
56
+ //#region src/define/fields/enumeration.ts
57
+ /** A value from an enumeration. Takes the enumeration itself, not a lambda. */
58
+ function enumeration$1(_options) {
59
+ return notImplemented("define.field.enumeration");
60
+ }
61
+ //#endregion
62
+ //#region src/define/fields/float.ts
63
+ /** Decimal number. `validations`: range, listItemCount. */
64
+ function float(_options) {
65
+ return notImplemented("define.field.float");
66
+ }
67
+ //#endregion
68
+ //#region src/define/fields/int.ts
69
+ /** Whole number. `validations`: range, listItemCount. */
70
+ function int(_options) {
71
+ return notImplemented("define.field.int");
72
+ }
73
+ //#endregion
74
+ //#region src/define/fields/json.ts
75
+ /** Arbitrary JSON. */
76
+ function json(_options) {
77
+ return notImplemented("define.field.json");
78
+ }
79
+ //#endregion
80
+ //#region src/define/fields/location.ts
81
+ /** A latitude and longitude. */
82
+ function location(_options) {
83
+ return notImplemented("define.field.location");
84
+ }
85
+ //#endregion
86
+ //#region src/define/fields/markdown.ts
87
+ /** The Markdown editor. Same validations as `singleLine`. */
88
+ function markdown(_options) {
89
+ return notImplemented("define.field.markdown");
90
+ }
91
+ //#endregion
92
+ //#region src/define/fields/multiLine.ts
93
+ /** The text area editor. Same validations as `singleLine`. */
94
+ function multiLine(_options) {
95
+ return notImplemented("define.field.multiLine");
96
+ }
97
+ //#endregion
98
+ //#region src/define/fields/referenceOneWay.ts
99
+ /** Visible from this side only. Hygraph keeps a hidden reverse that is never diffed. Allowed on components. */
100
+ function referenceOneWay(_options) {
101
+ return notImplemented("define.field.referenceOneWay");
102
+ }
103
+ //#endregion
104
+ //#region src/define/fields/referenceTwoWay.ts
105
+ /** Both sides declared. The partner on `to` must point back through `reverse`. Models only. */
106
+ function referenceTwoWay(_options) {
107
+ return notImplemented("define.field.referenceTwoWay");
108
+ }
109
+ //#endregion
110
+ //#region src/define/fields/referenceUnion.ts
111
+ /** A reference to several models. On models every member declares `unionMember`. */
112
+ function referenceUnion(_options) {
113
+ return notImplemented("define.field.referenceUnion");
114
+ }
115
+ //#endregion
116
+ //#region src/define/fields/remote.ts
117
+ /** A field resolved from a remote source. `visibility` defaults to READ_ONLY. */
118
+ function remote(_options) {
119
+ return notImplemented("define.field.remote");
120
+ }
121
+ //#endregion
122
+ //#region src/define/fields/richText.ts
123
+ /** Rich text. `embeds` enables embedding; `actions` picks the toolbar. */
124
+ function richText(_options) {
125
+ return notImplemented("define.field.richText");
126
+ }
127
+ //#endregion
128
+ //#region src/define/fields/singleLine.ts
129
+ /** One line of text. `validations`: characters, matches, notMatches, listItemCount. */
130
+ function singleLine(_options) {
131
+ return notImplemented("define.field.singleLine");
132
+ }
133
+ //#endregion
134
+ //#region src/define/fields/slug.ts
135
+ /** The slug editor. Adds `lowercase`, `autoGenerate` and `template`, e.g. `"{title}"`. */
136
+ function slug(_options) {
137
+ return notImplemented("define.field.slug");
138
+ }
139
+ //#endregion
140
+ //#region src/define/fields/string.ts
141
+ /** Text rendered by an installed app's element. `renderer` is required. */
142
+ function string(_options) {
143
+ return notImplemented("define.field.string");
144
+ }
145
+ //#endregion
146
+ //#region src/define/fields/taxonomy.ts
147
+ /** A node from a taxonomy. `localized` is not available in v1. */
148
+ function taxonomy$1(_options) {
149
+ return notImplemented("define.field.taxonomy");
150
+ }
151
+ //#endregion
152
+ //#region src/define/fields/unionMember.ts
153
+ /** The slot a union's member model declares. All members share one `apiId`. Models only. */
154
+ function unionMember(_options) {
155
+ return notImplemented("define.field.unionMember");
156
+ }
157
+ //#endregion
158
+ //#region src/define/fields/vector.ts
159
+ /** An embedding. `dimension` is required (1 to 3072); `index` is refused above 2000. */
160
+ function vector(_options) {
161
+ return notImplemented("define.field.vector");
162
+ }
163
+ //#endregion
164
+ //#region src/define/fields/index.ts
165
+ var fields_exports = /* @__PURE__ */ __exportAll({
166
+ asset: () => asset$1,
167
+ boolean: () => boolean,
168
+ color: () => color,
169
+ component: () => component$1,
170
+ componentUnion: () => componentUnion,
171
+ date: () => date,
172
+ dateTime: () => dateTime,
173
+ enumeration: () => enumeration$1,
174
+ float: () => float,
175
+ int: () => int,
176
+ json: () => json,
177
+ location: () => location,
178
+ markdown: () => markdown,
179
+ multiLine: () => multiLine,
180
+ referenceOneWay: () => referenceOneWay,
181
+ referenceTwoWay: () => referenceTwoWay,
182
+ referenceUnion: () => referenceUnion,
183
+ remote: () => remote,
184
+ richText: () => richText,
185
+ singleLine: () => singleLine,
186
+ slug: () => slug,
187
+ string: () => string,
188
+ taxonomy: () => taxonomy$1,
189
+ unionMember: () => unionMember,
190
+ vector: () => vector
191
+ });
192
+ //#endregion
193
+ //#region src/define/resources/component.ts
194
+ /** Same options as `model` minus `sidebar`; no two-way references or union members. */
195
+ function component(_options) {
196
+ return notImplemented("define.component");
197
+ }
198
+ //#endregion
199
+ //#region src/define/resources/enumeration.ts
200
+ function enumeration(_options) {
201
+ return notImplemented("define.enumeration");
202
+ }
203
+ //#endregion
204
+ //#region src/define/resources/model.ts
205
+ /**
206
+ * One model.
207
+ *
208
+ * Nothing here is validated. Format rules, `apiIdPlural` against `apiId` and
209
+ * uniqueness are plan-time checks, reported together rather than thrown one
210
+ * at a time while the config loads.
211
+ */
212
+ function model(input) {
213
+ return {
214
+ __typename: "Model",
215
+ apiId: input.apiId,
216
+ apiIdPlural: input.apiIdPlural,
217
+ displayName: input.displayName,
218
+ description: isEmpty(input.description) ? null : input.description
219
+ };
220
+ }
221
+ //#endregion
222
+ //#region src/define/resources/environment.ts
223
+ /**
224
+ * One environment: typed arrays per resource kind. The what.
225
+ *
226
+ * Ordering, keying and positions are not decided here. This returns the
227
+ * models as written; `convertToIR` turns them into the canonical form.
228
+ */
229
+ function environment(input) {
230
+ return {
231
+ __typename: "Environment",
232
+ models: [...input.models]
233
+ };
234
+ }
235
+ //#endregion
236
+ //#region src/define/resources/graphqlRemoteSource.ts
237
+ function graphqlRemoteSource(_options) {
238
+ return notImplemented("define.graphqlRemoteSource");
239
+ }
240
+ //#endregion
241
+ //#region src/define/resources/locale.ts
242
+ function locale(_options) {
243
+ return notImplemented("define.locale");
244
+ }
245
+ //#endregion
246
+ //#region src/define/resources/restRemoteSource.ts
247
+ function restRemoteSource(_options) {
248
+ return notImplemented("define.restRemoteSource");
249
+ }
250
+ //#endregion
251
+ //#region src/define/resources/stage.ts
252
+ function stage(_options) {
253
+ return notImplemented("define.stage");
254
+ }
255
+ //#endregion
256
+ //#region src/define/resources/target.ts
257
+ /**
258
+ * One environment of one project, where to reach it and the token to do so,
259
+ * and the environment definition to apply there. The where.
260
+ */
261
+ function target(input) {
262
+ return {
263
+ __typename: "Target",
264
+ name: input.name,
265
+ project: input.project.replace(/-/g, ""),
266
+ environment: input.environment,
267
+ endpoint: input.endpoint,
268
+ token: input.token,
269
+ apply: input.apply
270
+ };
271
+ }
272
+ //#endregion
273
+ //#region src/define/resources/taxonomy.ts
274
+ function taxonomy(_options) {
275
+ return notImplemented("define.taxonomy");
276
+ }
277
+ //#endregion
278
+ //#region src/define/index.ts
279
+ var define_exports = /* @__PURE__ */ __exportAll({
280
+ component: () => component,
281
+ enumeration: () => enumeration,
282
+ environment: () => environment,
283
+ field: () => fields_exports,
284
+ graphqlRemoteSource: () => graphqlRemoteSource,
285
+ locale: () => locale,
286
+ model: () => model,
287
+ restRemoteSource: () => restRemoteSource,
288
+ stage: () => stage,
289
+ target: () => target,
290
+ taxonomy: () => taxonomy
291
+ });
292
+ //#endregion
293
+ //#region src/define/system/asset.ts
294
+ function asset(_options) {
295
+ return notImplemented("system.asset");
296
+ }
297
+ //#endregion
298
+ //#region src/define/system/query.ts
299
+ function query(_options) {
300
+ return notImplemented("system.query");
301
+ }
302
+ //#endregion
303
+ //#region src/define/system/segment.ts
304
+ function segment(_options) {
305
+ return notImplemented("system.segment");
306
+ }
307
+ //#endregion
308
+ //#region src/define/system/index.ts
309
+ var system_exports = /* @__PURE__ */ __exportAll({
310
+ asset: () => asset,
311
+ query: () => query,
312
+ segment: () => segment
313
+ });
314
+ //#endregion
315
+ export { define_exports as define, system_exports as system };
@@ -0,0 +1,3 @@
1
+ //#region src/version.d.ts
2
+ export declare const VERSION: string;
3
+ //#endregion
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import { t as VERSION } from "./version.js";
2
+ export { VERSION };
@@ -0,0 +1,11 @@
1
+ //#region src/utils/is-empty.ts
2
+ /**
3
+ * A nullable string that was omitted or written as `""` canonicalises to
4
+ * `null`. Studio writes empty strings where it means nothing, and the server
5
+ * treats the two the same, so the IR keeps one of them.
6
+ */
7
+ function isEmpty(value) {
8
+ return value === void 0 || value === "";
9
+ }
10
+ //#endregion
11
+ export { isEmpty as t };
@@ -0,0 +1,13 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return target;
11
+ };
12
+ //#endregion
13
+ export { __exportAll as t };
@@ -0,0 +1,4 @@
1
+ //#region src/version.ts
2
+ const VERSION = "0.0.2";
3
+ //#endregion
4
+ export { VERSION as t };
package/package.json CHANGED
@@ -1,11 +1,71 @@
1
1
  {
2
2
  "name": "@hygraph/cli",
3
- "version": "0.0.0",
4
- "description": "Hygraph CLI",
5
- "author": "Hygraph",
3
+ "version": "0.0.2",
4
+ "description": "Manage your Hygraph schema as code",
6
5
  "license": "UNLICENSED",
6
+ "author": "Hygraph GmbH",
7
+ "bin": {
8
+ "hygraph": "./bin/hygraph.js"
9
+ },
10
+ "files": [
11
+ "bin",
12
+ "dist"
13
+ ],
14
+ "type": "module",
15
+ "main": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ },
22
+ "./define": {
23
+ "types": "./dist/define.d.ts",
24
+ "import": "./dist/define.js"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
7
28
  "publishConfig": {
8
- "access": "public"
29
+ "access": "restricted"
30
+ },
31
+ "dependencies": {
32
+ "jiti": "^2.7.0"
33
+ },
34
+ "devDependencies": {
35
+ "@changesets/cli": "^2.29.7",
36
+ "@graphql-codegen/cli": "^7.4.1",
37
+ "@graphql-codegen/typed-document-node": "^7.1.0",
38
+ "@graphql-codegen/typescript": "^6.1.0",
39
+ "@graphql-codegen/typescript-operations": "^6.1.6",
40
+ "@graphql-typed-document-node/core": "^3.2.0",
41
+ "@types/node": "^22.18.0",
42
+ "commander": "^15.0.0",
43
+ "graphql": "^16.14.2",
44
+ "oxfmt": "^0.68.0",
45
+ "tsdown": "^0.23.0",
46
+ "typescript": "^5.9.3",
47
+ "unrun": "^0.3.1",
48
+ "vitest": "^3.2.4"
49
+ },
50
+ "engines": {
51
+ "node": ">=22",
52
+ "pnpm": "^10.0.0"
9
53
  },
10
- "files": []
54
+ "scripts": {
55
+ "build": "tsdown",
56
+ "cli": "node bin/hygraph.js",
57
+ "typecheck": "tsc",
58
+ "codegen": "graphql-codegen",
59
+ "test": "vitest",
60
+ "test:ci": "vitest --run",
61
+ "format": "oxfmt",
62
+ "format:check": "oxfmt --check",
63
+ "format:check:ci": "oxfmt --list-different",
64
+ "clean": "rm -rf node_modules dist",
65
+ "changeset": "changeset",
66
+ "changeset:status": "changeset status --since=origin/development",
67
+ "publish-packages": "changeset publish --no-git-tag",
68
+ "publish-packages-dry-run": "changeset publish --no-git-tag --dry-run",
69
+ "version:ci": "changeset version"
70
+ }
11
71
  }