@tsed/cli 6.1.7 → 6.1.9

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.
@@ -213,6 +213,13 @@ let InitCmd = class InitCmd {
213
213
  }
214
214
  addScripts(ctx) {
215
215
  this.packageJson.addScripts(this.runtimes.scripts(ctx));
216
+ if (ctx.eslint || ctx.testing) {
217
+ const runtime = this.runtimes.get();
218
+ const scripts = {
219
+ test: [ctx.eslint && runtime.run("test:lint"), ctx.testing && runtime.run("test:coverage")].filter(Boolean).join("&&")
220
+ };
221
+ this.packageJson.addScripts(scripts);
222
+ }
216
223
  }
217
224
  addDependencies(ctx) {
218
225
  this.packageJson.addDependencies({