cospace
v0.6.0
Published
Setup a `CoSpace` to link multiple (mono)repos together!
Downloads
98
Maintainers
Readme
CoSpace
Setup a CoSpace
to link multiple (mono)repos together!
Getting Started
Pre-requisites
Create a new CoSpace
Initialize
npx cospace@latest init my-cospace
Link your (mono)repos
cd my-cospace
Clone all the repos you want to link together under the
repos
sub directory.Update the
pnpm-workspace.yaml
file with all the packages you want to add to yourCoSpace
. By default all packages under therepos
directory will be added to yourCoSpace
, but you probably want to be more specific.Update the
cospace.code-workspace
file with all the repos you want to add to your vscode multi-root workspace.Run
pnpm install
to install all the packages you've added to yourCoSpace
.Run
pnpm build
to build all the packages you've added to yourCoSpace
using your monorepo task runner. By default we use lage, but turborepo should work as well.
Advanced Usage
override
npx cospace@latest override
- Automatically update the
pnpm.overrides
section of theCoSpace
'spackage.json
, to ignore semver and always use the local package version from the workspace. Useful for when you have pre-release versions of packages in your workspace.
purge
npx cospace@latest purge
- Recursievely delete all
node_modules
from theCoSpace
.