Revert "fix: Remove type from ModuleDefaults, combine unions"

This reverts commit 31ae9cf6bf.
This commit is contained in:
Gerald Pinder 2024-10-13 21:08:45 -04:00
parent 31ae9cf6bf
commit 706f58f294
2 changed files with 15 additions and 7 deletions

View file

@ -21,7 +21,7 @@ for (const module of modules) {
text = text // add `...ModuleDefaults;` after the model type
.split("\n")
.flatMap(line => {
return line.replace(/model ([A-Za-z]+) {/, "model $1 extends ModuleDefaults {");
return line.replace(/model ([A-Za-z]+) {/, "model $1 extends Module {");
// if (line.trimStart().startsWith(`type: "${module.name}"`)) {
// return [
// line,