Skip to content

Commit

Permalink
Merge pull request #398 from garden-io/dev-deploy-command-consistency
Browse files Browse the repository at this point in the history
fix: make dev cmd consistent with deploy cmd
  • Loading branch information
thsig authored Nov 30, 2018
2 parents cfef196 + 85f31f9 commit 8bbc389
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions garden-service/src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { flatten } from "lodash"
import moment = require("moment")
import { join } from "path"

import { BuildTask } from "../tasks/build"
import { BaseTask } from "../tasks/base"
import { hotReloadAndLog, validateHotReloadOpt } from "./helpers"
import { getTasksForModule, getHotReloadModuleNames } from "../tasks/helpers"
Expand Down Expand Up @@ -110,7 +109,7 @@ export class DevCommand extends Command<Args, Opts> {
const testTasks: BaseTask[] = flatten(await Bluebird.map(
testModules, m => getTestTasks({ garden, log, module: m })))

const tasks = testTasks.concat(await getTasksForModule({
return testTasks.concat(await getTasksForModule({
garden,
log,
module,
Expand All @@ -120,12 +119,6 @@ export class DevCommand extends Command<Args, Opts> {
forceBuild: watch,
includeDependants: watch,
}))

if (tasks.length === 0) {
return [new BuildTask({ garden, log, module, force: watch })]
} else {
return tasks
}
}

}
Expand Down

0 comments on commit 8bbc389

Please sign in to comment.