@omnifyjp/omnify 5.1.2 → 5.2.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.
- package/omnify-config-schema.json +5 -0
- package/package.json +6 -6
- package/types/config.d.ts +14 -0
|
@@ -171,6 +171,11 @@
|
|
|
171
171
|
"codegen": {
|
|
172
172
|
"$ref": "#/definitions/Codegen",
|
|
173
173
|
"description": "Codegen overrides for this package (merged with package's own codegen config)"
|
|
174
|
+
},
|
|
175
|
+
"inline": {
|
|
176
|
+
"type": "boolean",
|
|
177
|
+
"default": false,
|
|
178
|
+
"description": "Schemas-only package mode (issue #94). When true, the package ships ONLY YAML schemas — no omnify.yaml, no lock.json, no migrations/ tree. The host project owns migrations + lock + codegen for this package's schemas. Requires `path` or `schemasDir`; forbids `lockFile`."
|
|
174
179
|
}
|
|
175
180
|
}
|
|
176
181
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnifyjp/omnify",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
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": "5.
|
|
40
|
-
"@omnifyjp/omnify-darwin-x64": "5.
|
|
41
|
-
"@omnifyjp/omnify-linux-x64": "5.
|
|
42
|
-
"@omnifyjp/omnify-linux-arm64": "5.
|
|
43
|
-
"@omnifyjp/omnify-win32-x64": "5.
|
|
39
|
+
"@omnifyjp/omnify-darwin-arm64": "5.2.0",
|
|
40
|
+
"@omnifyjp/omnify-darwin-x64": "5.2.0",
|
|
41
|
+
"@omnifyjp/omnify-linux-x64": "5.2.0",
|
|
42
|
+
"@omnifyjp/omnify-linux-arm64": "5.2.0",
|
|
43
|
+
"@omnifyjp/omnify-win32-x64": "5.2.0"
|
|
44
44
|
}
|
|
45
45
|
}
|
package/types/config.d.ts
CHANGED
|
@@ -162,6 +162,20 @@ export interface PackageConfig {
|
|
|
162
162
|
lockFile?: string;
|
|
163
163
|
/** Codegen overrides for this package. */
|
|
164
164
|
codegen?: CodegenConfig;
|
|
165
|
+
/**
|
|
166
|
+
* Schemas-only package mode (issue #94). When true, the package
|
|
167
|
+
* ships ONLY YAML schemas — no `omnify.yaml`, no `lock.json`, no
|
|
168
|
+
* `database/migrations/` tree. The host project owns migrations,
|
|
169
|
+
* lock state, and codegen for this package's schemas; the
|
|
170
|
+
* `s.Package` tag is still set so consumer-side codegen lands
|
|
171
|
+
* classes in the right per-package namespace.
|
|
172
|
+
*
|
|
173
|
+
* - Requires `path` or explicit `schemasDir`.
|
|
174
|
+
* - Forbids `lockFile` (host's lock is the single source of truth).
|
|
175
|
+
* - `kind: extend` overlays in the host merge into the base CREATE
|
|
176
|
+
* on first generate; later additions emit ALTER as usual.
|
|
177
|
+
*/
|
|
178
|
+
inline?: boolean;
|
|
165
179
|
}
|
|
166
180
|
|
|
167
181
|
/** Main Omnify configuration (omnify.yaml). */
|