           js = CoffeeScript.compile(sourceData, {bare: true})
           modulePath = sysPath.relative(publicDir, path)[...-3]
           deps = parseDeps(js)
+
+          # Concat package deps
+          match = modulePath.match(/^components\/(.*)\/(.*)\//)
+          if match
+            extraDeps = packageDeps["#{match[1]}/#{match[2]}"]
+            if extraDeps?.length > 0
+              deps = deps.concat(extraDeps)
+
           js = "define('#{modulePath}', #{JSON.stringify(deps)}, function(require, exports, module) {#{js}});"
           fs.writeFileSync path, js
           logging.info "compiled #{source}"

        repoDir = sysPath.join(userDir, repo)
        if isDirectory(repoDir)
          aliases[repo] = aliases["#{user}/#{repo}"] = "components/#{user}/#{repo}/index"

buildAliases()


  settings.assetHost = opts.cdn ? ''
  settings.version = opts.hash ? '1.0.0'

# Path aliases and package dependencies
aliases = {}
packageDeps = {}

isDirectory = (path) ->
  stats = fs.statSync(path)
