@omnifyjp/omnify 3.2.0 → 3.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnifyjp/omnify",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Schema-driven code generation for Laravel, TypeScript, and SQL",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,10 +36,10 @@
36
36
  "zod": "^3.24.0"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@omnifyjp/omnify-darwin-arm64": "3.2.0",
40
- "@omnifyjp/omnify-darwin-x64": "3.2.0",
41
- "@omnifyjp/omnify-linux-x64": "3.2.0",
42
- "@omnifyjp/omnify-linux-arm64": "3.2.0",
43
- "@omnifyjp/omnify-win32-x64": "3.2.0"
39
+ "@omnifyjp/omnify-darwin-arm64": "3.2.2",
40
+ "@omnifyjp/omnify-darwin-x64": "3.2.2",
41
+ "@omnifyjp/omnify-linux-x64": "3.2.2",
42
+ "@omnifyjp/omnify-linux-arm64": "3.2.2",
43
+ "@omnifyjp/omnify-win32-x64": "3.2.2"
44
44
  }
45
45
  }
@@ -26,6 +26,7 @@ import { generateFileModels } from './file-model-generator.js';
26
26
  import { generateFileTrait } from './file-trait-generator.js';
27
27
  import { generateFileCleanup } from './file-cleanup-generator.js';
28
28
  import { generateSchemaConfig } from './schema-config-generator.js';
29
+ import { baseFile } from './types.js';
29
30
  import { generateControllers } from './controller-generator.js';
30
31
  import { generateServices } from './service-generator.js';
31
32
  import { generateRoutes } from './route-generator.js';
@@ -35,6 +36,13 @@ export function generatePhp(data, overrides) {
35
36
  const reader = SchemaReader.fromData(data);
36
37
  const config = derivePhpConfig(overrides);
37
38
  const files = [];
39
+ // Modules README (modular structure only)
40
+ if (config.structure === 'modular') {
41
+ files.push(baseFile(`${config.modulesPath}/README.md`, `# Auto-generated by Omnify\n\n` +
42
+ `This directory contains auto-generated base files. Do NOT edit.\n` +
43
+ `Run \`omnify generate\` to regenerate.\n\n` +
44
+ `Editable files are in app/Models/, app/Http/Controllers/, app/Services/, etc.\n`));
45
+ }
38
46
  // Infrastructure files
39
47
  files.push(...generateBaseModel(config));
40
48
  files.push(...generateTrait(config));