Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yarn-changed-workspaces

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yarn-changed-workspaces

An utility to show changed workspaces and their dependants

  • 2.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
264
increased by417.65%
Maintainers
1
Weekly downloads
 
Created
Source

yarn-changed-workspaces

A small utility tool to be used in CI/CD pipelines along with git to trigger dependent libraries' workflows in a monorepo pattern.

CI Coverage Status

Install

yarn global add yarn-changed-workspaces

CLI

yarn-changed-workspaces --help

Node.js

./package.json

{
  "workspaces": ["packages/*"]
}
const getChangedWorkspaces = require("yarn-changed-workspaces");

(async () => {
  const workspaces = await getChangedWorkspaces({
    branch: "master",
    projectRoot: process.cwd(),
  });
  console.log("changes", workspaces);
})();

Control scope of change

./package.json

{
  "private": true,
  "workspaces": ["packages/*"]
}

./packages/app/package.json

{
  "name": "@team/ui",
  "version": "1.0.0",
  "workspace": { "files": ["!**/*.(test|spec).(j|t)s(x)?"] }
}

Limitation

git is the core diffing tool. This library will not work if you use a different distributed version-control system for tracking changes in source code during software development

Keywords

FAQs

Package last updated on 12 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc