diff --git a/src/lib/KevinGH/Box/Command/Build.php b/src/lib/KevinGH/Box/Command/Build.php index f4be0fee..aef003e1 100644 --- a/src/lib/KevinGH/Box/Command/Build.php +++ b/src/lib/KevinGH/Box/Command/Build.php @@ -428,7 +428,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $this->putln('?', "Output path: $path"); - $this->box = Box::create($path); + $this->box = Box::create($path, null, null, true); $this->box->getPhar()->startBuffering(); // set replacement values, if any @@ -532,6 +532,9 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } + // Flush lazy + $this->box->flushLazy(); + // set the appropriate stub if (true === $this->config->isStubGenerated()) { $this->putln('?', 'Generating new stub...');