@postxl/generator 1.0.4 → 1.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.
@@ -169,6 +169,6 @@ export declare function prepareBaseContext(schema: Schema.ProjectSchema, opts?:
169
169
  * Helper function for tests to create a mock schema.
170
170
  */
171
171
  export declare function mockSchema(schema?: Partial<Schema.ProjectSchema>): Schema.ProjectSchema;
172
- export declare function mockSchemaWithDefaultModels(schema?: Partial<Schema.ProjectSchema>): Schema.ProjectSchema;
172
+ export declare function mockSchemaWithDefaultModels(schema?: any): Schema.ProjectSchema;
173
173
  export declare function getBaseModelContext(model: Schema.Model): ModelContext;
174
174
  export declare function getBaseEnumContext(enumSchema: Schema.Enum): EnumContext;
@@ -71,7 +71,7 @@ function mockSchema(schema = {}) {
71
71
  return {
72
72
  name: 'PXL Mock',
73
73
  slug: 'pxl-mock',
74
- projectType: { kind: 'standalone' },
74
+ projectType: 'standalone',
75
75
  models: new Map(),
76
76
  enums: new Map(),
77
77
  ...schema,
@@ -81,7 +81,7 @@ function mockSchemaWithDefaultModels(schema = {}) {
81
81
  return Schema.zProjectSchema.parse({
82
82
  name: 'PXL Mock',
83
83
  slug: 'pxl-mock',
84
- projectType: { kind: 'standalone' },
84
+ projectType: 'standalone',
85
85
  ...schema,
86
86
  });
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postxl/generator",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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",
@@ -45,7 +45,8 @@
45
45
  "jszip": "3.10.1",
46
46
  "minimatch": "^10.0.1",
47
47
  "p-limit": "3.1.0",
48
- "@postxl/schema": "^1.0.0"
48
+ "@postxl/schema": "^1.0.2",
49
+ "@postxl/utils": "^1.0.0"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@types/diff": "5.2.2",