prismic-ts-codegen 0.1.31-pr.94.42dbdc3 → 0.1.31-pr.96.e94e98c

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/cli.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { dedent } from "./lib/dedent.mjs";
1
+ import { description, version } from "./package.mjs";
2
2
  import { generateTypes } from "./generateTypes.mjs";
3
3
  import { detectTypesProvider } from "./detectTypesProvider.mjs";
4
- import { NON_EDITABLE_FILE_HEADER } from "./cli/constants.mjs";
5
4
  import "./index.mjs";
6
- import { description, version } from "./package.mjs";
5
+ import { dedent } from "./lib/dedent.mjs";
7
6
  import { configSchema } from "./cli/configSchema.mjs";
7
+ import { NON_EDITABLE_FILE_HEADER } from "./cli/constants.mjs";
8
8
  import { loadConfig } from "./cli/loadConfig.mjs";
9
9
  import { loadLocaleIDs } from "./cli/loadLocaleIDs.mjs";
10
10
  import { loadModels } from "./cli/loadModels.mjs";
@@ -1,9 +1,9 @@
1
1
  import { addLine } from "./lib/addLine.mjs";
2
2
  import { addSection } from "./lib/addSection.mjs";
3
- import { buildUnion } from "./lib/buildUnion.mjs";
4
- import { dedent } from "./lib/dedent.mjs";
5
3
  import { buildCustomTypeType } from "./lib/buildCustomTypeType.mjs";
6
4
  import { buildSharedSliceType } from "./lib/buildSharedSliceType.mjs";
5
+ import { buildUnion } from "./lib/buildUnion.mjs";
6
+ import { dedent } from "./lib/dedent.mjs";
7
7
  import QuickLRU from "quick-lru";
8
8
  // src/generateTypes.ts
9
9
  const cache = new QuickLRU({ maxSize: 1e3 });
@@ -1,7 +1,7 @@
1
1
  import { buildTypeName } from "./buildTypeName.mjs";
2
- import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
3
- import { dedent } from "./dedent.mjs";
4
2
  import { buildFieldProperties } from "./buildFieldProperties.mjs";
3
+ import { dedent } from "./dedent.mjs";
4
+ import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
5
5
  // src/lib/buildCustomTypeDataType.ts
6
6
  function buildCustomTypeDataType(args) {
7
7
  let code = "";
@@ -1,12 +1,12 @@
1
- import { addSection } from "./addSection.mjs";
2
1
  import { CUSTOM_TYPES_DOCUMENTATION_URL } from "../constants.mjs";
2
+ import { addSection } from "./addSection.mjs";
3
+ import { buildCustomTypeDataType } from "./buildCustomTypeDataType.mjs";
3
4
  import { buildTypeName } from "./buildTypeName.mjs";
4
- import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
5
5
  import { buildUnion } from "./buildUnion.mjs";
6
- import { dedent } from "./dedent.mjs";
7
- import { buildCustomTypeDataType } from "./buildCustomTypeDataType.mjs";
8
6
  import { checkHasUIDField } from "./checkHasUIDFIeld.mjs";
7
+ import { dedent } from "./dedent.mjs";
9
8
  import { getCacheKey } from "./getCacheKey.mjs";
9
+ import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
10
10
  // src/lib/buildCustomTypeType.ts
11
11
  function buildCustomTypeType(args) {
12
12
  if (args.cache) {
@@ -1,5 +1,5 @@
1
- import { addLine } from "./addLine.mjs";
2
1
  import { FIELD_DOCUMENTATION_URLS } from "../constants.mjs";
2
+ import { addLine } from "./addLine.mjs";
3
3
  import { getAPIIDPath } from "./getAPIIDPath.mjs";
4
4
  import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
5
5
  import { getHumanReadablePath } from "./getHumanReadablePath.mjs";
@@ -1,10 +1,10 @@
1
1
  import { addLine } from "./addLine.mjs";
2
2
  import { addSection } from "./addSection.mjs";
3
- import { buildTypeName } from "./buildTypeName.mjs";
4
- import { getHumanReadablePath } from "./getHumanReadablePath.mjs";
5
3
  import { buildFieldDocs } from "./buildFieldDocs.mjs";
4
+ import { buildTypeName } from "./buildTypeName.mjs";
6
5
  import { buildUnion } from "./buildUnion.mjs";
7
6
  import { dedent } from "./dedent.mjs";
7
+ import { getHumanReadablePath } from "./getHumanReadablePath.mjs";
8
8
  import { CustomTypeModelFieldType } from "@prismicio/client";
9
9
  // src/lib/buildFieldProperties.ts
10
10
  function buildFieldProperty(args) {
@@ -1,12 +1,12 @@
1
- import { addSection } from "./addSection.mjs";
2
1
  import { SHARED_SLICES_DOCUMENTATION_URL } from "../constants.mjs";
2
+ import { addSection } from "./addSection.mjs";
3
+ import { buildFieldProperties } from "./buildFieldProperties.mjs";
3
4
  import { buildTypeName } from "./buildTypeName.mjs";
4
- import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
5
- import { getHumanReadablePath } from "./getHumanReadablePath.mjs";
6
5
  import { buildUnion } from "./buildUnion.mjs";
7
6
  import { dedent } from "./dedent.mjs";
8
- import { buildFieldProperties } from "./buildFieldProperties.mjs";
9
7
  import { getCacheKey } from "./getCacheKey.mjs";
8
+ import { getHumanReadableModelName } from "./getHumanReadableModelName.mjs";
9
+ import { getHumanReadablePath } from "./getHumanReadablePath.mjs";
10
10
  // src/lib/buildSharedSliceType.ts
11
11
  function buildSharedSliceType(args) {
12
12
  if (args.cache) {
package/dist/package.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.1.31-pr.94.42dbdc3";
2
+ var version = "0.1.31-pr.96.e94e98c";
3
3
  var description = "An experimental Prismic model-to-TypeScript-type generator";
4
4
  export { description, version };
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prismic-ts-codegen",
3
- "version": "0.1.31-pr.94.42dbdc3",
3
+ "version": "0.1.31-pr.96.e94e98c",
4
4
  "description": "An experimental Prismic model-to-TypeScript-type generator",
5
5
  "keywords": [
6
6
  "prismic",
@@ -50,14 +50,14 @@
50
50
  "zod": "^4.6.7"
51
51
  },
52
52
  "devDependencies": {
53
- "@prismicio/client": "7.22.3",
53
+ "@prismicio/client": "7.23.0",
54
54
  "@prismicio/mock": "0.7.2",
55
- "@types/node": "^26.6.5",
55
+ "@types/node": "^26.6.6",
56
56
  "@vitest/coverage-v8": "^5.0.5",
57
- "oxfmt": "^0.74.0",
58
- "oxlint": "^1.89.0",
57
+ "oxfmt": "^0.75.0",
58
+ "oxlint": "^1.90.0",
59
59
  "ts-morph": "^28.0.0",
60
- "tsdown": "^0.23.1",
60
+ "tsdown": "^0.23.4",
61
61
  "typescript": "^7.0.2",
62
62
  "vitest": "^5.0.5"
63
63
  },