Skip to content
Latchkey

Workspace - CI/CD Glossary Definition

A workspace is a feature of package managers (npm, Yarn, pnpm, Cargo) that lets one repository hold multiple packages which can depend on each other and share a single install.

How it is declared

In npm you add "workspaces": ["packages/*"] to the root package.json. One npm install then links the local packages together and hoists shared dependencies into a single tree.

Why CI likes it

A single install and a single lockfile cover every package, so the CI cache is shared and cross-package changes are tested together in one run.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →