From 585f6912a7e8b2287a86f323638cbb980e9421e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armin=20Ros=CC=A6u?= Date: Mon, 4 Apr 2016 15:06:39 +0300 Subject: [PATCH] remove subdirectories from atom packages --- build/src/Raincolour/Core/Processor.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/src/Raincolour/Core/Processor.php b/build/src/Raincolour/Core/Processor.php index 2c8869ea..4dc36ccb 100644 --- a/build/src/Raincolour/Core/Processor.php +++ b/build/src/Raincolour/Core/Processor.php @@ -243,7 +243,12 @@ protected function buildOutputPath($pattern, $template, $theme) // Build path array from directory locations. $path[] = $this->config->dir('output'); $path[] = $pattern->get('directory'); - $path[] = $theme->get('theme.dir'); + + // @NOTE Atom doesn't display packages in subdirectories. + if ($pattern->get('directory') !== 'atom') { + $path[] = $theme->get('theme.dir'); + } + $path[] = $template->get('directory'); $name = $this->buildFileName($template->get('name'), $theme); $path[] = $name.$template->get('extension');