@postxl/generator 1.5.0 → 1.6.0
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.
|
@@ -103,8 +103,7 @@ export type ModelContext = Schema.Model & {
|
|
|
103
103
|
*/
|
|
104
104
|
_conjugated: Conjugated;
|
|
105
105
|
/**
|
|
106
|
-
* Convenience set of related model names referenced by relation
|
|
107
|
-
* fields in this model.
|
|
106
|
+
* Convenience set of related model names referenced by relation fields in this model.
|
|
108
107
|
*
|
|
109
108
|
* Only names (not entire model contexts) are provided so that the models' enhanced
|
|
110
109
|
* contexts can be retrieved during generation (ie. after all generators have registered their
|
|
@@ -163,11 +163,5 @@ function extractModelNamesFromFields(fields, models) {
|
|
|
163
163
|
if (field.kind === 'relation' && field.referencedModelName) {
|
|
164
164
|
models.add(field.referencedModelName);
|
|
165
165
|
}
|
|
166
|
-
else if (field.kind === 'discriminatedUnion') {
|
|
167
|
-
extractModelNamesFromFields(field.commonFields, models);
|
|
168
|
-
for (const member of field.members.values()) {
|
|
169
|
-
extractModelNamesFromFields(member.fields, models);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
166
|
}
|
|
173
167
|
}
|
package/dist/utils/lockfile.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type EjectedSentinel = typeof EJECTED_SENTINEL;
|
|
|
24
24
|
* checksum, or the {@link EJECTED_SENTINEL} marking the file as permanently ejected.
|
|
25
25
|
*/
|
|
26
26
|
export type LockEntry = Checksum | EjectedSentinel;
|
|
27
|
-
declare const zLockFile: z.ZodPipe<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PXL.PosixPath", "out">, z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "PXL.Checksum", "out">, z.ZodLiteral<"ejected">]>>, z.ZodTransform<Map<string & z.core.$brand<"PXL.PosixPath">, LockEntry>, Record<string & z.core.$brand<"PXL.PosixPath">, (string & z.core.$brand<"PXL.Checksum">)
|
|
27
|
+
declare const zLockFile: z.ZodPipe<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PXL.PosixPath", "out">, z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "PXL.Checksum", "out">, z.ZodLiteral<"ejected">]>>, z.ZodTransform<Map<string & z.core.$brand<"PXL.PosixPath">, LockEntry>, Record<string & z.core.$brand<"PXL.PosixPath">, "ejected" | (string & z.core.$brand<"PXL.Checksum">)>>>;
|
|
28
28
|
type LockFile = z.infer<typeof zLockFile>;
|
|
29
29
|
export declare function isEjected(entry: LockEntry | undefined): entry is EjectedSentinel;
|
|
30
30
|
export declare function writeLockFile(lockFilePath: string, vfs: VirtualFileSystem, opts?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postxl/generator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Core package that orchestrates the code generation of a PXL project",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"jszip": "3.10.1",
|
|
47
47
|
"minimatch": "^10.2.2",
|
|
48
48
|
"p-limit": "3.1.0",
|
|
49
|
-
"@postxl/schema": "^
|
|
49
|
+
"@postxl/schema": "^2.0.0",
|
|
50
50
|
"@postxl/utils": "^1.4.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|