@hygraph/cli 0.0.17 → 0.0.19

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/dist/define2.js CHANGED
@@ -5089,7 +5089,7 @@ const RICH_TEXT_ACTIONS = [
5089
5089
  ];
5090
5090
  /**
5091
5091
  * Formatted text, such as an article's body, with embedded entries of
5092
- * other models when `embeds` lists them. Allowed on components.
5092
+ * other models and assets when `embeds` lists them. Allowed on components.
5093
5093
  *
5094
5094
  * Nothing here is validated, and the models are not looked at until the
5095
5095
  * plan: the checks run at plan time with the model's or component's own.
@@ -5723,10 +5723,11 @@ const SYSTEM_MODELS = [
5723
5723
  "SystemSegment"
5724
5724
  ];
5725
5725
  /**
5726
- * One environment: typed arrays per resource kind. The what.
5726
+ * Everything one environment holds: its locales, stages, enumerations,
5727
+ * taxonomies, remote sources, components and models. Pass it to
5728
+ * `define.target` as `apply`.
5727
5729
  *
5728
- * Ordering, keying and positions are not decided here. This returns the
5729
- * resources as written; `convertToIR` turns them into the canonical form.
5730
+ * Only the order of `stages` matters. The other lists can be in any order.
5730
5731
  */
5731
5732
  function environment(input) {
5732
5733
  return {
@@ -6077,8 +6078,8 @@ function restRemoteSource(input) {
6077
6078
  //#endregion
6078
6079
  //#region src/define/resources/target.ts
6079
6080
  /**
6080
- * One environment of one project, where to reach it and the token to do so,
6081
- * and the environment definition to apply there. The where.
6081
+ * Where to apply an environment: one environment of one project, the
6082
+ * endpoint to reach it at and the token to use.
6082
6083
  */
6083
6084
  function target(input) {
6084
6085
  return {
@@ -6196,3 +6197,5 @@ const model = {
6196
6197
  };
6197
6198
  //#endregion
6198
6199
  export { require_parser as C, isEmpty as D, assetReverseApiId as E, sidebarElementKey as S, require_kinds as T, splitTypeDefinitions as _, SLUG_DEFAULTS as a, byPrefix as b, environment as c, RICH_TEXT_ACTIONS as d, isEmptyRichText as f, convertOAuthToIR as g, convertHeadersToIR as h, target as i, SYSTEM_SIDEBAR_DISPLAY_NAMES as l, REMOTE_DEFAULTS as m, stage as n, collectIntents as o, richTextActions as p, define_exports as r, convertEnvironmentToIR as s, system_exports as t, FIELD_DEFAULTS as u, typeDefinitionName as v, require_GraphQLError as w, bySidebarElementKey as x, byApiId as y };
6200
+
6201
+ //# sourceMappingURL=define2.js.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- //#region src/version.d.ts
2
- export declare const VERSION: string;
3
- //#endregion
1
+ import { n as VERSION } from "./version.js";
2
+ export { VERSION };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as VERSION } from "./version.js";
1
+ import { n as VERSION } from "./version.js";
2
2
  export { VERSION };
@@ -0,0 +1,7 @@
1
+ //#region src/version.d.ts
2
+ declare const VERSION: string;
3
+ /** `production` for the build on npm, `local` for any other build. */
4
+ type CliEnvironment = "production" | "local";
5
+ //#endregion
6
+ export { VERSION as n, CliEnvironment as t };
7
+ //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,4 +1,7 @@
1
1
  //#region src/version.ts
2
- const VERSION = "0.0.17";
2
+ const VERSION = "0.0.19";
3
+ const CLI_ENVIRONMENT = "production";
3
4
  //#endregion
4
- export { VERSION as t };
5
+ export { VERSION as n, CLI_ENVIRONMENT as t };
6
+
7
+ //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hygraph/cli",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "Manage your Hygraph schema as code",
5
5
  "license": "MIT",
6
6
  "author": "Hygraph GmbH",
@@ -9,7 +9,9 @@
9
9
  },
10
10
  "files": [
11
11
  "bin",
12
- "dist"
12
+ "dist",
13
+ "!dist/**/*.map",
14
+ "CHANGELOG.md"
13
15
  ],
14
16
  "type": "module",
15
17
  "main": "./dist/index.js",
@@ -41,6 +43,7 @@
41
43
  "@graphql-codegen/typescript-operations": "^6.1.6",
42
44
  "@graphql-typed-document-node/core": "^3.2.0",
43
45
  "@paralleldrive/cuid2": "^3.3.0",
46
+ "@sentry/core": "^10.78.0",
44
47
  "@types/node": "^22.18.0",
45
48
  "canonicalize": "^5.1.0",
46
49
  "commander": "^15.0.0",