You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace `disableTypescriptSchemas` and `disableMissingTypeAutoGen` with
`forceTypeScript`. JS files now produce plain JS output by default; set
`forceTypeScript: true` to generate TypeScript schemas, types, and
extensions from JavaScript sources. `combineSchemasAndTypes` defaults to
`true` in `runMigration`.
|`--output-dir <path>`| Output directory for generated schemas (default: `./app/data`) |
@@ -152,6 +159,8 @@ Key configuration options:
152
159
153
160
-**`projectName`** - The Ember app name, used for resolving classic module imports like `example-app/models/user`.
154
161
-**`emberDataImportSource`** / **`warpDriveImports`** - Tell the codemod where your app imports EmberData and WarpDrive APIs from, when they differ from the defaults (`@ember-data/model`, `@warp-drive/core`, etc.).
162
+
-**`forceTypeScript`** - When `true`, all output is `.ts` with type interfaces, even when source files are JavaScript. When `false` (default), `.js` sources produce plain `.js` output without type annotations.
163
+
-**`separateTypes`** - When `true`, emit a separate `.type.ts` file alongside each `.schema` file. By default (`false`), type interfaces are merged into the `.schema` file.
155
164
-**`typeMapping`** - Maps custom EmberData transform names (e.g., `@attr('uuid')`) to TypeScript types for the generated type files.
156
165
-**`intermediateModelPaths`** - Import paths of base classes between `Model` and your concrete models. The codemod will analyze these and convert them to traits.
157
166
-**`importSubstitutes`** - For base classes whose source can't be analyzed, tells the codemod what trait/extension names to reference.
Copy file name to clipboardExpand all lines: packages/codemods/src/schema-migration/config-schema.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,11 @@
36
36
"description": "Force all output files to be TypeScript (.ts) even when input files are JavaScript (.js).",
37
37
"default": false
38
38
},
39
+
"combineSchemasAndTypes": {
40
+
"type": "boolean",
41
+
"description": "Combine schema and type interface into a single file. When true, each model produces one .schema file. Set to false to emit a separate .type.ts file.",
42
+
"default": true
43
+
},
39
44
"mirror": {
40
45
"type": "boolean",
41
46
"description": "Use @warp-drive-mirror instead of @warp-drive for imports",
0 commit comments