prismic-ts-codegen 0.1.31-pr.89.08dbead → 0.1.31-pr.92.2d7bc7b

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.
Files changed (38) hide show
  1. package/dist/cli/configSchema.d.mts +0 -2
  2. package/dist/cli/configSchema.d.mts.map +1 -1
  3. package/dist/cli/configSchema.mjs +1 -2
  4. package/dist/cli/constants.d.mts +0 -2
  5. package/dist/cli/constants.d.mts.map +1 -1
  6. package/dist/cli/constants.mjs +1 -2
  7. package/dist/cli/loadConfig.mjs +1 -2
  8. package/dist/cli/loadLocaleIDs.mjs +1 -2
  9. package/dist/cli/loadModels.mjs +1 -2
  10. package/dist/cli.mjs +1 -2
  11. package/dist/constants.mjs +1 -2
  12. package/dist/detectTypesProvider.d.mts +0 -2
  13. package/dist/detectTypesProvider.d.mts.map +1 -1
  14. package/dist/detectTypesProvider.mjs +1 -2
  15. package/dist/generateTypes.d.mts +0 -2
  16. package/dist/generateTypes.d.mts.map +1 -1
  17. package/dist/generateTypes.mjs +1 -2
  18. package/dist/lib/addBlankLine.mjs +1 -2
  19. package/dist/lib/addLine.mjs +1 -2
  20. package/dist/lib/addSection.mjs +1 -2
  21. package/dist/lib/addTrailingNewLine.mjs +1 -2
  22. package/dist/lib/buildCustomTypeDataType.mjs +1 -2
  23. package/dist/lib/buildCustomTypeType.mjs +1 -2
  24. package/dist/lib/buildFieldDocs.mjs +1 -2
  25. package/dist/lib/buildFieldProperties.mjs +1 -2
  26. package/dist/lib/buildSharedSliceType.mjs +1 -2
  27. package/dist/lib/buildTypeName.mjs +1 -2
  28. package/dist/lib/buildUnion.mjs +1 -2
  29. package/dist/lib/checkHasUIDFIeld.mjs +1 -2
  30. package/dist/lib/dedent.mjs +1 -2
  31. package/dist/lib/getAPIIDPath.mjs +1 -2
  32. package/dist/lib/getCacheKey.mjs +1 -2
  33. package/dist/lib/getHumanReadableModelName.mjs +1 -2
  34. package/dist/lib/getHumanReadablePath.mjs +1 -2
  35. package/dist/package.mjs +2 -3
  36. package/dist/types.d.mts +0 -2
  37. package/dist/types.d.mts.map +1 -1
  38. package/package.json +3 -3
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/cli/configSchema.d.ts
3
2
  /** Configuration to control the generated types. */
4
3
  export declare const configSchema: z.ZodObject<{
5
4
  repositoryName: z.ZodOptional<z.ZodString>;
@@ -33,5 +32,4 @@ export declare const configSchema: z.ZodObject<{
33
32
  }, z.core.$strip>;
34
33
  /** Configuration to control the generated types. */
35
34
  export type Config = z.infer<typeof configSchema>;
36
- //#endregion
37
35
  //# sourceMappingURL=configSchema.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configSchema.d.mts","names":[],"sources":["../../src/cli/configSchema.ts"],"mappings":";;;qBAGa,cAAY,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkLvB,EAAA,KAAA;;YAGU,SAAS,EAAE,aAAa"}
1
+ {"version":3,"file":"configSchema.d.mts","names":[],"sources":["../../src/cli/configSchema.ts"],"mappings":";;qBAGa,cAAY,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkLvB,EAAA,KAAA;;YAGU,SAAS,EAAE,aAAa"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- //#region src/cli/configSchema.ts
2
+ // src/cli/configSchema.ts
3
3
  /** Configuration to control the generated types. */
4
4
  const configSchema = z.object({
5
5
  /** The name of the Prismic repository. */
@@ -148,7 +148,6 @@ providerTypes: z.record(z.string(), z.string()).optional() }).optional(),
148
148
  catalogTypes: z.record(z.string(), z.string()).optional() }).optional()
149
149
  }).optional()
150
150
  });
151
- //#endregion
152
151
  export { configSchema };
153
152
 
154
153
  //# sourceMappingURL=configSchema.mjs.map
@@ -1,4 +1,2 @@
1
- //#region src/cli/constants.d.ts
2
1
  export declare const NON_EDITABLE_FILE_HEADER = "// Code generated by prismic-ts-codegen. DO NOT EDIT.";
3
- //#endregion
4
2
  //# sourceMappingURL=constants.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.mts","names":[],"sources":["../../src/cli/constants.ts"],"mappings":";qBAAa"}
1
+ {"version":3,"file":"constants.d.mts","names":[],"sources":["../../src/cli/constants.ts"],"mappings":"A,qBAAa"}
@@ -1,6 +1,5 @@
1
- //#region src/cli/constants.ts
1
+ // src/cli/constants.ts
2
2
  const NON_EDITABLE_FILE_HEADER = "// Code generated by prismic-ts-codegen. DO NOT EDIT.";
3
- //#endregion
4
3
  export { NON_EDITABLE_FILE_HEADER };
5
4
 
6
5
  //# sourceMappingURL=constants.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { existsSync } from "fs";
2
2
  import { resolve } from "path";
3
3
  import { createJiti } from "jiti";
4
- //#region src/cli/loadConfig.ts
4
+ // src/cli/loadConfig.ts
5
5
  const jiti = createJiti(process.cwd());
6
6
  const DEFAULT_CONFIG_PATHS = ["prismicCodegen.config.ts", "prismicCodegen.config.js"];
7
7
  const loadConfig = async (config) => {
@@ -11,7 +11,6 @@ const loadConfig = async (config) => {
11
11
  } else for (const configPath of DEFAULT_CONFIG_PATHS) if (existsSync(configPath)) return await jiti.import(resolve(configPath), { default: true });
12
12
  return {};
13
13
  };
14
- //#endregion
15
14
  export { loadConfig };
16
15
 
17
16
  //# sourceMappingURL=loadConfig.mjs.map
@@ -1,5 +1,5 @@
1
1
  import * as prismic from "@prismicio/client";
2
- //#region src/cli/loadLocaleIDs.ts
2
+ // src/cli/loadLocaleIDs.ts
3
3
  const loadLocaleIDs = async (config) => {
4
4
  const localeIDs = new Set(config.localeIDs || []);
5
5
  if ("repositoryName" in config && config.fetchFromRepository) {
@@ -11,7 +11,6 @@ const loadLocaleIDs = async (config) => {
11
11
  }
12
12
  return [...localeIDs];
13
13
  };
14
- //#endregion
15
14
  export { loadLocaleIDs };
16
15
 
17
16
  //# sourceMappingURL=loadLocaleIDs.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { readFileSync } from "fs";
2
2
  import { glob } from "tinyglobby";
3
- //#region src/cli/loadModels.ts
3
+ // src/cli/loadModels.ts
4
4
  const isCustomTypeModel = (input) => {
5
5
  return typeof input === "object" && input !== null && "json" in input;
6
6
  };
@@ -45,7 +45,6 @@ const loadModels = async (config) => {
45
45
  })
46
46
  };
47
47
  };
48
- //#endregion
49
48
  export { loadModels };
50
49
 
51
50
  //# sourceMappingURL=loadModels.mjs.map
package/dist/cli.mjs CHANGED
@@ -11,7 +11,7 @@ import { loadModels } from "./cli/loadModels.mjs";
11
11
  import { existsSync, writeFileSync } from "fs";
12
12
  import { parseArgs } from "node:util";
13
13
  import { resolve } from "path";
14
- //#region src/cli/index.ts
14
+ // src/cli/index.ts
15
15
  const HELP = dedent`
16
16
  ${description}
17
17
 
@@ -128,7 +128,6 @@ main().catch((error) => {
128
128
  console.error(error);
129
129
  process.exit(1);
130
130
  });
131
- //#endregion
132
131
  export {};
133
132
 
134
133
  //# sourceMappingURL=cli.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/constants.ts
1
+ // src/constants.ts
2
2
  const CUSTOM_TYPES_DOCUMENTATION_URL = "https://prismic.io/docs/content-modeling";
3
3
  const SHARED_SLICES_DOCUMENTATION_URL = "https://prismic.io/docs/slices";
4
4
  const FIELD_DOCUMENTATION_URLS = {
@@ -25,7 +25,6 @@ const FIELD_DOCUMENTATION_URLS = {
25
25
  Slices: "https://prismic.io/docs/slices",
26
26
  Choice: "https://prismic.io/docs/slices"
27
27
  };
28
- //#endregion
29
28
  export { CUSTOM_TYPES_DOCUMENTATION_URL, FIELD_DOCUMENTATION_URLS, SHARED_SLICES_DOCUMENTATION_URL };
30
29
 
31
30
  //# sourceMappingURL=constants.mjs.map
@@ -1,5 +1,4 @@
1
1
  import { TypesProvider } from "./generateTypes.mjs";
2
- //#region src/detectTypesProvider.d.ts
3
2
  export type DetectTypesProviderConfig = {
4
3
  cwd?: string;
5
4
  };
@@ -11,5 +10,4 @@ export type DetectTypesProviderConfig = {
11
10
  * determined.
12
11
  */
13
12
  export declare const detectTypesProvider: (config?: DetectTypesProviderConfig) => Promise<TypesProvider | undefined>;
14
- //#endregion
15
13
  //# sourceMappingURL=detectTypesProvider.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"detectTypesProvider.d.mts","names":[],"sources":["../src/detectTypesProvider.ts"],"mappings":";;YAIY;EACX;;;;;;;;;qBAUY,sBAAmB,SACvB,8BACN,QAAQ"}
1
+ {"version":3,"file":"detectTypesProvider.d.mts","names":[],"sources":["../src/detectTypesProvider.ts"],"mappings":";YAIY;EACX;;;;;;;;;qBAUY,sBAAmB,SACvB,8BACN,QAAQ"}
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- //#region src/detectTypesProvider.ts
2
+ // src/detectTypesProvider.ts
3
3
  /**
4
4
  * Detects which types provider should be used for a project.
5
5
  *
@@ -18,7 +18,6 @@ const detectTypesProvider = async (config = {}) => {
18
18
  return "@prismicio/types";
19
19
  } catch {}
20
20
  };
21
- //#endregion
22
21
  export { detectTypesProvider };
23
22
 
24
23
  //# sourceMappingURL=detectTypesProvider.mjs.map
@@ -1,6 +1,5 @@
1
1
  import { FieldConfigs } from "./types.mjs";
2
2
  import { CustomTypeModel, SharedSliceModel } from "@prismicio/client";
3
- //#region src/generateTypes.d.ts
4
3
  export type TypesProvider = "@prismicio/client" | "@prismicio/types";
5
4
  export type GenerateTypesConfig = {
6
5
  customTypeModels?: CustomTypeModel[];
@@ -15,5 +14,4 @@ export type GenerateTypesConfig = {
15
14
  cache?: boolean;
16
15
  };
17
16
  export declare function generateTypes(config?: GenerateTypesConfig): string;
18
- //#endregion
19
17
  //# sourceMappingURL=generateTypes.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generateTypes.d.mts","names":[],"sources":["../src/generateTypes.ts"],"mappings":";;;YAWY;YAIA;EACX,mBAAmB;EACnB,oBAAoB;EACpB;EACA,eAAe;EACf,gBAAgB;EAChB;IACC;IACA;;EAED;;wBAGe,cAAc,SAAQ"}
1
+ {"version":3,"file":"generateTypes.d.mts","names":[],"sources":["../src/generateTypes.ts"],"mappings":";;YAWY;YAIA;EACX,mBAAmB;EACnB,oBAAoB;EACpB;EACA,eAAe;EACf,gBAAgB;EAChB;IACC;IACA;;EAED;;wBAGe,cAAc,SAAQ"}
@@ -5,7 +5,7 @@ import { dedent } from "./lib/dedent.mjs";
5
5
  import { buildCustomTypeType } from "./lib/buildCustomTypeType.mjs";
6
6
  import { buildSharedSliceType } from "./lib/buildSharedSliceType.mjs";
7
7
  import QuickLRU from "quick-lru";
8
- //#region src/generateTypes.ts
8
+ // src/generateTypes.ts
9
9
  const cache = new QuickLRU({ maxSize: 1e3 });
10
10
  function generateTypes(config = {}) {
11
11
  const fieldConfigs = config.fieldConfigs || {};
@@ -139,7 +139,6 @@ type ContentRelationshipFieldWithData<
139
139
  }
140
140
  return code;
141
141
  }
142
- //#endregion
143
142
  export { generateTypes };
144
143
 
145
144
  //# sourceMappingURL=generateTypes.mjs.map
@@ -1,10 +1,9 @@
1
1
  import { addTrailingNewLine } from "./addTrailingNewLine.mjs";
2
- //#region src/lib/addBlankLine.ts
2
+ // src/lib/addBlankLine.ts
3
3
  function addBlankLine(state, config) {
4
4
  if ((!state || state.endsWith("\n\n")) && !config?.force) return state;
5
5
  else return addTrailingNewLine(state) + "\n";
6
6
  }
7
- //#endregion
8
7
  export { addBlankLine };
9
8
 
10
9
  //# sourceMappingURL=addBlankLine.mjs.map
@@ -1,9 +1,8 @@
1
1
  import { addTrailingNewLine } from "./addTrailingNewLine.mjs";
2
- //#region src/lib/addLine.ts
2
+ // src/lib/addLine.ts
3
3
  function addLine(line, state) {
4
4
  return addTrailingNewLine(state) + line;
5
5
  }
6
- //#endregion
7
6
  export { addLine };
8
7
 
9
8
  //# sourceMappingURL=addLine.mjs.map
@@ -1,9 +1,8 @@
1
1
  import { addBlankLine } from "./addBlankLine.mjs";
2
- //#region src/lib/addSection.ts
2
+ // src/lib/addSection.ts
3
3
  function addSection(section, state) {
4
4
  return addBlankLine(state) + section;
5
5
  }
6
- //#endregion
7
6
  export { addSection };
8
7
 
9
8
  //# sourceMappingURL=addSection.mjs.map
@@ -1,9 +1,8 @@
1
- //#region src/lib/addTrailingNewLine.ts
1
+ // src/lib/addTrailingNewLine.ts
2
2
  function addTrailingNewLine(state, config) {
3
3
  if ((!state || state.endsWith("\n")) && !config?.force) return state;
4
4
  else return state + "\n";
5
5
  }
6
- //#endregion
7
6
  export { addTrailingNewLine };
8
7
 
9
8
  //# sourceMappingURL=addTrailingNewLine.mjs.map
@@ -2,7 +2,7 @@ import { buildTypeName } from "./buildTypeName.mjs";
2
2
  import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
3
3
  import { dedent } from "./dedent.mjs";
4
4
  import { buildFieldProperties } from "./buildFieldProperties.mjs";
5
- //#region src/lib/buildCustomTypeDataType.ts
5
+ // src/lib/buildCustomTypeDataType.ts
6
6
  function buildCustomTypeDataType(args) {
7
7
  let code = "";
8
8
  const auxiliaryTypes = [];
@@ -44,7 +44,6 @@ function buildCustomTypeDataType(args) {
44
44
  contentTypeNames
45
45
  };
46
46
  }
47
- //#endregion
48
47
  export { buildCustomTypeDataType };
49
48
 
50
49
  //# sourceMappingURL=buildCustomTypeDataType.mjs.map
@@ -7,7 +7,7 @@ import { dedent } from "./dedent.mjs";
7
7
  import { buildCustomTypeDataType } from "./buildCustomTypeDataType.mjs";
8
8
  import { checkHasUIDField } from "./checkHasUIDFIeld.mjs";
9
9
  import { getCacheKey } from "./getCacheKey.mjs";
10
- //#region src/lib/buildCustomTypeType.ts
10
+ // src/lib/buildCustomTypeType.ts
11
11
  function buildCustomTypeType(args) {
12
12
  if (args.cache) {
13
13
  const key = getCacheKey(args.model);
@@ -56,7 +56,6 @@ function buildCustomTypeType(args) {
56
56
  }
57
57
  return result;
58
58
  }
59
- //#endregion
60
59
  export { buildCustomTypeType };
61
60
 
62
61
  //# sourceMappingURL=buildCustomTypeType.mjs.map
@@ -3,7 +3,7 @@ import { FIELD_DOCUMENTATION_URLS } from "../constants.mjs";
3
3
  import { getAPIIDPath } from "./getAPIIDPath.mjs";
4
4
  import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
5
5
  import { getHumanReadablePath } from "./getHumanReadablePath.mjs";
6
- //#region src/lib/buildFieldDocs.ts
6
+ // src/lib/buildFieldDocs.ts
7
7
  function getHumanReadableFieldType(args) {
8
8
  switch (args.field.type) {
9
9
  case "StructuredText": return "Rich Text";
@@ -65,7 +65,6 @@ function buildFieldDocs(args) {
65
65
  result = addLine(" */", result);
66
66
  return result;
67
67
  }
68
- //#endregion
69
68
  export { buildFieldDocs };
70
69
 
71
70
  //# sourceMappingURL=buildFieldDocs.mjs.map
@@ -6,7 +6,7 @@ import { buildFieldDocs } from "./buildFieldDocs.mjs";
6
6
  import { buildUnion } from "./buildUnion.mjs";
7
7
  import { dedent } from "./dedent.mjs";
8
8
  import { CustomTypeModelFieldType } from "@prismicio/client";
9
- //#region src/lib/buildFieldProperties.ts
9
+ // src/lib/buildFieldProperties.ts
10
10
  function buildFieldProperty(args) {
11
11
  let code = buildFieldDocs({
12
12
  name: args.name,
@@ -282,7 +282,6 @@ function buildFieldProperties(args) {
282
282
  contentTypeNames
283
283
  };
284
284
  }
285
- //#endregion
286
285
  export { buildFieldProperties };
287
286
 
288
287
  //# sourceMappingURL=buildFieldProperties.mjs.map
@@ -7,7 +7,7 @@ import { buildUnion } from "./buildUnion.mjs";
7
7
  import { dedent } from "./dedent.mjs";
8
8
  import { buildFieldProperties } from "./buildFieldProperties.mjs";
9
9
  import { getCacheKey } from "./getCacheKey.mjs";
10
- //#region src/lib/buildSharedSliceType.ts
10
+ // src/lib/buildSharedSliceType.ts
11
11
  function buildSharedSliceType(args) {
12
12
  if (args.cache) {
13
13
  const key = getCacheKey([args.model, args.fieldConfigs]);
@@ -145,7 +145,6 @@ function buildSharedSliceType(args) {
145
145
  }
146
146
  return result;
147
147
  }
148
- //#endregion
149
148
  export { buildSharedSliceType };
150
149
 
151
150
  //# sourceMappingURL=buildSharedSliceType.mjs.map
@@ -1,11 +1,10 @@
1
1
  import { pascalCase } from "change-case";
2
- //#region src/lib/buildTypeName.ts
2
+ // src/lib/buildTypeName.ts
3
3
  const buildTypeName = (...parts) => {
4
4
  let name = pascalCase(parts.filter(Boolean).join(" ").replace(/[^A-Z0-9]+/gi, " "), { mergeAmbiguousCharacters: true });
5
5
  if (/^[0-9]/.test(name) ? "_" : "") name = `_${name}`;
6
6
  return name;
7
7
  };
8
- //#endregion
9
8
  export { buildTypeName };
10
9
 
11
10
  //# sourceMappingURL=buildTypeName.mjs.map
@@ -1,8 +1,7 @@
1
- //#region src/lib/buildUnion.ts
1
+ // src/lib/buildUnion.ts
2
2
  function buildUnion(types) {
3
3
  return types.filter(Boolean).join(" | ") || "never";
4
4
  }
5
- //#endregion
6
5
  export { buildUnion };
7
6
 
8
7
  //# sourceMappingURL=buildUnion.mjs.map
@@ -1,8 +1,7 @@
1
- //#region src/lib/checkHasUIDFIeld.ts
1
+ // src/lib/checkHasUIDFIeld.ts
2
2
  function checkHasUIDField(model) {
3
3
  return "uid" in Object.assign({}, ...Object.values(model.json));
4
4
  }
5
- //#endregion
6
5
  export { checkHasUIDField };
7
6
 
8
7
  //# sourceMappingURL=checkHasUIDFIeld.mjs.map
@@ -1,11 +1,10 @@
1
1
  import baseDedent from "dedent";
2
- //#region src/lib/dedent.ts
2
+ // src/lib/dedent.ts
3
3
  const baseDedentWithOptions = baseDedent.withOptions({ alignValues: true });
4
4
  const dedent = (strings, ...values) => {
5
5
  const resolved = Array.from(strings);
6
6
  return baseDedentWithOptions(Object.assign(resolved, { raw: resolved }), ...values);
7
7
  };
8
- //#endregion
9
8
  export { dedent };
10
9
 
11
10
  //# sourceMappingURL=dedent.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/lib/getAPIIDPath.ts
1
+ // src/lib/getAPIIDPath.ts
2
2
  function getAPIIDPath(args) {
3
3
  let result = "";
4
4
  for (let i = 0; i < args.path.length; i++) {
@@ -18,7 +18,6 @@ function getAPIIDPath(args) {
18
18
  }
19
19
  return result;
20
20
  }
21
- //#endregion
22
21
  export { getAPIIDPath };
23
22
 
24
23
  //# sourceMappingURL=getAPIIDPath.mjs.map
@@ -1,5 +1,5 @@
1
1
  import * as crypto from "node:crypto";
2
- //#region src/lib/getCacheKey.ts
2
+ // src/lib/getCacheKey.ts
3
3
  /**
4
4
  * Returns a key based on the provided input that can be used as a cache identifier.
5
5
  *
@@ -9,7 +9,6 @@ import * as crypto from "node:crypto";
9
9
  const getCacheKey = (input) => {
10
10
  return crypto.createHash("sha1").update(JSON.stringify(input)).digest("hex");
11
11
  };
12
- //#endregion
13
12
  export { getCacheKey };
14
13
 
15
14
  //# sourceMappingURL=getCacheKey.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/lib/getHumanReadableModelName.ts
1
+ // src/lib/getHumanReadableModelName.ts
2
2
  const getHumanReadableModelName = (args) => {
3
3
  if ("json" in args.model) return args.model.label || args.model.id;
4
4
  else if ("type" in args.model && args.model.type === "SharedSlice") return args.model.name;
@@ -9,7 +9,6 @@ const getHumanReadableModelName = (args) => {
9
9
  }
10
10
  return `\`${args.name}\``;
11
11
  };
12
- //#endregion
13
12
  export { getHumanReadableModelName };
14
13
 
15
14
  //# sourceMappingURL=getHumanReadableModelName.mjs.map
@@ -1,5 +1,5 @@
1
1
  import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
2
- //#region src/lib/getHumanReadablePath.ts
2
+ // src/lib/getHumanReadablePath.ts
3
3
  function getHumanReadablePath(args) {
4
4
  return args.path.map((element) => {
5
5
  if (element.label) return element.label;
@@ -10,7 +10,6 @@ function getHumanReadablePath(args) {
10
10
  else return element.name;
11
11
  }).join(" → ");
12
12
  }
13
- //#endregion
14
13
  export { getHumanReadablePath };
15
14
 
16
15
  //# sourceMappingURL=getHumanReadablePath.mjs.map
package/dist/package.mjs CHANGED
@@ -1,7 +1,6 @@
1
- //#region package.json
2
- var version = "0.1.31-pr.89.08dbead";
1
+ // package.json
2
+ var version = "0.1.31-pr.92.2d7bc7b";
3
3
  var description = "An experimental Prismic model-to-TypeScript-type generator";
4
- //#endregion
5
4
  export { description, version };
6
5
 
7
6
  //# sourceMappingURL=package.mjs.map
package/dist/types.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { CustomTypeModel, SharedSliceModel } from "@prismicio/client";
2
- //#region src/types.d.ts
3
2
  export type FieldConfigs = {
4
3
  embed?: {
5
4
  providerTypes?: Record<string, string>;
@@ -8,5 +7,4 @@ export type FieldConfigs = {
8
7
  catalogTypes?: Record<string, string>;
9
8
  };
10
9
  };
11
- //#endregion
12
10
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;YAyBY;EACX;IACC,gBAAgB;;EAEjB;IACC,eAAe"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";YAyBY;EACX;IACC,gBAAgB;;EAEjB;IACC,eAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prismic-ts-codegen",
3
- "version": "0.1.31-pr.89.08dbead",
3
+ "version": "0.1.31-pr.92.2d7bc7b",
4
4
  "description": "An experimental Prismic model-to-TypeScript-type generator",
5
5
  "keywords": [
6
6
  "prismic",
@@ -54,8 +54,8 @@
54
54
  "@prismicio/mock": "0.7.2",
55
55
  "@types/node": "^26.6.5",
56
56
  "@vitest/coverage-v8": "^5.0.5",
57
- "oxfmt": "^0.73.0",
58
- "oxlint": "^1.88.0",
57
+ "oxfmt": "^0.74.0",
58
+ "oxlint": "^1.89.0",
59
59
  "ts-morph": "^28.0.0",
60
60
  "tsdown": "^0.23.1",
61
61
  "typescript": "^7.0.2",