prismic-ts-codegen 0.0.5 → 0.0.6
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/bin/cli.mjs +1 -1
- package/package.json +1 -1
- package/src/cli/index.ts +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -1150,7 +1150,6 @@ ${configPath} already exists.`);
|
|
|
1150
1150
|
|
|
1151
1151
|
const config: Config = {
|
|
1152
1152
|
output: "./types.generated.ts",
|
|
1153
|
-
|
|
1154
1153
|
models: ["./customtypes/**/index.json", "./slices/**/model.json"],
|
|
1155
1154
|
};
|
|
1156
1155
|
|
|
@@ -1192,6 +1191,7 @@ Created prismic-ts-codegen config file: ${configPath}`);
|
|
|
1192
1191
|
customTypeModels,
|
|
1193
1192
|
sharedSliceModels,
|
|
1194
1193
|
localeIDs,
|
|
1194
|
+
fieldConfigs: config.fields,
|
|
1195
1195
|
clientIntegration: {
|
|
1196
1196
|
includeCreateClientInterface: hasCustomTypeModels ? config.clientIntegration?.includeCreateClientInterface ?? true : false
|
|
1197
1197
|
}
|
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -49,7 +49,6 @@ const main = async () => {
|
|
|
49
49
|
|
|
50
50
|
const config: Config = {
|
|
51
51
|
output: "./types.generated.ts",
|
|
52
|
-
|
|
53
52
|
models: ["./customtypes/**/index.json", "./slices/**/model.json"],
|
|
54
53
|
};
|
|
55
54
|
|
|
@@ -107,6 +106,7 @@ const main = async () => {
|
|
|
107
106
|
customTypeModels,
|
|
108
107
|
sharedSliceModels,
|
|
109
108
|
localeIDs,
|
|
109
|
+
fieldConfigs: config.fields,
|
|
110
110
|
clientIntegration: {
|
|
111
111
|
includeCreateClientInterface: hasCustomTypeModels
|
|
112
112
|
? config.clientIntegration?.includeCreateClientInterface ?? true
|