Class: CobraCommander::Yarn::Workspace

Inherits:
Object
  • Object
show all
Defined in:
lib/cobra_commander/yarn/workspace.rb

Overview

Yarn workspace components source for an umbrella

Instance Method Summary collapse

Instance Method Details

#packagesObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/cobra_commander/yarn/workspace.rb', line 11

def packages
  workspace_data.map do |name, spec|
    ::CobraCommander::Package.new(
      self,
      path: path.join(spec["location"]),
      dependencies: spec["workspaceDependencies"].map { |d| untag(d) },
      name: untag(name)
    )
  end
end