@tsed/cli 7.1.0 → 7.1.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.
@@ -134,6 +134,16 @@ export class ProjectClient extends Project {
134
134
  });
135
135
  extendsConfig.addElement("\n" + content);
136
136
  }
137
+ if (content.match("withOptions")) {
138
+ if (!sourceFile.getImportDeclarations().some((imp) => {
139
+ return imp.getText().match("withOptions");
140
+ })) {
141
+ sourceFile.addImportDeclaration({
142
+ moduleSpecifier: "@tsed/config",
143
+ namedImports: [{ name: "withOptions" }]
144
+ });
145
+ }
146
+ }
137
147
  }
138
148
  findConfigurationDecorationOptions() {
139
149
  if (!this.serverSourceFile) {