</>PackageGraphPackageGraph

resolve-workspace-root

npmv2.0.1TypeScript

Resolve the workspace root using bun, npm, pnpm, or yarn

Safe to adopt

Yes — resolve-workspace-root scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 247 days ago. 2 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 247 days ago. 2 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 101 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding resolve-workspace-root to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

101 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the resolve-workspace-root README.

import { resolveWorkspaceRoot, resolveWorkspaceRootAsync } from 'resolve-workspace-root';

// Synchronous lookup, supporting bun, npm, pnpm, and yarn
const workspaceRoot = resolveWorkspaceRoot(__dirname);
// Synchronous lookup, supporting only bun, npm, and yarn
const workspaceRoot = resolveWorkspaceRoot(__dirname, { packageWorkspaces: false });
// Synchronous lookup, supporting only pnpm
const workspaceRoot = resolveWorkspaceRoot(__dirname, { pnpmWorkspaces: false });

// Asynchronous lookup, supporting bun, npm, pnpm, and yarn
const workspaceRoot = await resolveWorkspaceRootAsync(__dirname);
// Asynchronous lookup, supporting only bun, npm, and yarn
const workspaceRoot = await resolveWorkspaceRootAsync(__dirname, { packageWorkspaces: false });
// Asynchronous lookup, supporting only pnpm
Example truncated — see the full README.

resolve-workspace-root vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
resolve-workspace-rootthis page03MIT8 months ago
@expo/package-manager01MIT4 days ago
sql-escaper4.9M1MIT4 days ago
pkg-dirdeprecated01MIT4 days ago
jest-pnp-resolver01MIT4 days ago
jose02MIT4 days ago

Dependencies

Declared by resolve-workspace-root v2.0.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (13)

@tsconfig/node20 ^20.1.4@types/bun ^1.1.6@types/js-yaml ^4.0.9@types/micromatch ^4.0.9@types/node ^22.5.0@vercel/ncc ^0.38.1eslint ^8.57.0eslint-config-universe ^13.0.0js-yaml ^4.1.0memfs ^4.11.1micromatch ^4.0.7prettier ^3.3.3typescript ^5.5.4

Used by

Popular packages that depend on resolve-workspace-root.

Relationship graph

Dependencies (left) and dependents (right) of resolve-workspace-root.

@expo/config@expo/package-man…expo-widgetsresolve-workspace…
resolve-workspace-root dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 48 days apart.

Recent versions of resolve-workspace-root
VersionPublishedSizeLicense
2.0.1latest8 months ago101 KBMIT
2.0.01 year ago101 KBMIT
1.0.12 years ago99 KBMIT
1.0.02 years ago99 KBMIT

Overview

resolve-workspace-root is an npm package that resolve the workspace root using bun, npm, pnpm, or yarn. It has 3 known dependents in the graph. The latest version is 2.0.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need resolve the workspace root using bun, npm, pnpm, or yarn and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use resolve-workspace-root?

Yes — resolve-workspace-root scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 247 days ago. 2 releases in the last 2 years.

How do I install resolve-workspace-root?

Run `npm install resolve-workspace-root` to add resolve-workspace-root to your npm project.

What license is resolve-workspace-root released under?

resolve-workspace-root is distributed under the MIT license.

How popular is resolve-workspace-root?

npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on resolve-workspace-root.

Is resolve-workspace-root still maintained?

The most recent release of resolve-workspace-root (v2.0.1) was published 8 months ago.

Does resolve-workspace-root run install scripts?

No. resolve-workspace-root does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.