Skip to content

In monorepos, allow running commands from package directories #1237

Closed
@roryc89

Description

@roryc89

In a monorepo it would more convenient to allow some commands (build, install, uninstall, run, test, bundle) to be run from the package, instead of having to run them from the workspace directory with the package flag.

As our project is very large, I often work on individual packages as the IDE is slow when working on the whole workspace. It is then a bit cumbersome to have to change directory and add the package flag in order to run any spago commands on the package.

Currently to install a dependency when working in a monorepo the commands look something like this:

cd ../..
spago install -p lib-components some-dep
cd lib/components

ideally I would just like to run:

spago install some-dep

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions