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

@typescript-tools/internal-dependencies

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-tools/internal-dependencies

Calculate package dependencies living in the same monorepo

  • 3.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

internal-dependencies

License NPM Package Build Status semantic-release

Calculate package dependencies living in the same monorepo

Install

npm install --save-dev @typescript-tools/internal-dependencies

Use

Usage:
    internal-dependencies [--root <root>] [--path] <package>...

Options:
    packages         Package names or paths to print dependencies of (also reads from stdin)
    --root=<root>    Root of lerna mono-repository
    --path           Print the relative path to each package from root

internal-dependencies reads one or more packages either as arguments or from stdin, and outputs the internal dependencies that the list of packages depends upon, either directly or transitively.

Packages may be specified by path or by (scoped) name.

Examples

Note: all examples run from the root of this monorepo

Given the following package.json

{
  "name": "@typescript-tools/lerna-utils",
  "version": "2.1.1",
  "dependencies": {
    "@typescript-tools/io-ts": "^2.2.0"
  }
}

internal-dependencies prints the following

$ npx internal-dependencies @typescript-tools/lerna-utils
@typescript-tools/io-ts

$ echo @typescript-tools/lerna-utils | npx internal-dependencies
@typescript-tools/io-ts

Use --path to print the path to the dependencies rather than the package names


{
    "name": "@typescript-tools/internal-dependencies",
    "version": "2.2.4",
    "dependencies": {
        "@typescript-tools/dependency-graph": "^2.1.5",
        "@typescript-tools/find-package": "^1.1.3",
        "@typescript-tools/io-ts": "^2.2.0",
        "@typescript-tools/lerna-packages": "^2.2.2",
        "@typescript-tools/monorepo-root": "^1.3.2"
    },
    "devDependencies": {
}
$ npx internal-dependencies --path @typescript-tools/internal-dependencies
packages/dependency-graph
packages/find-package
packages/io-ts
packages/lerna-packages
packages/monorepo-root
packages/lerna-utils

Keywords

FAQs

Package last updated on 31 Oct 2021

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