Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

find-yarn-workspace-root2

bluelovers7.2mApache-2.01.2.50TypeScript support: included

Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com

readme

find-yarn-workspace-root

Build Status

Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com

Installation

yarn add find-yarn-workspace-root

Usage

const findWorkspaceRoot = require('find-yarn-workspace-root');

const workspaceRoot = findWorkspaceRoot(__dirname); // Absolute path or null

Contributing

Contributions are welcome! Just clone this repository and install the dependencies:

git clone https://github.com/square/find-yarn-workspace-root.git
cd find-yarn-workspace-root
yarn

Note that you'll need node and yarn installed. Next, verify the tests all pass:

yarn test

Then create a branch for your bugfix/feature, make changes and update the tests, and submit a pull request. Please do not change the version in package.json when submitting a pull request. We determine the next version automatically based on the commits since the last release.

NOTE: Commit messages follow the Angular commit message guidelines.

Releases

Releases are handled by Travis CI once a build succeeds on master. To trigger a release, bump the version using standard-version:

$(yarn bin)/standard-version

That should update the CHANGELOG, bump the version in package.json, and create a git tag. Then, just git push && git push --tags.


Copyright 2017 Square, Inc.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.2.50 (2024-05-03)

🛠 Build System

1.2.49 (2022-11-14)

📌 Dependencies

1.2.48 (2022-10-28)

📌 Dependencies

1.2.47 (2022-10-01)

🔖 Miscellaneous

1.2.46 (2022-09-29)

🔖 Miscellaneous

1.2.45 (2022-09-28)

📌 Dependencies

1.2.44 (2022-09-27)

🔖 Miscellaneous

1.2.43 (2022-09-06)

📚 Documentation

🔖 Miscellaneous

1.2.42 (2022-08-26)

🔖 Miscellaneous

1.2.41 (2022-08-13)

💎 Styles

1.2.40 (2022-08-13)

🚨 Tests

  • update jest.config.js and deps (d1d501b)

1.2.39 (2022-07-31)

🚨 Tests

  • preset: use @bluelovers/jest-config (e239ecf)

1.2.38 (2022-05-11)

♻️ Chores

1.2.37 (2022-03-29)

♻️ Chores

1.2.36 (2021-12-31)

📦 Code Refactoring

1.2.35 (2021-12-16)

🔖 Miscellaneous

1.2.34 (2021-10-13)

♻️ Chores

🔖 Miscellaneous

1.2.33 (2021-10-13)

♻️ Chores

1.2.32 (2021-08-13)

♻️ Chores

1.2.31 (2021-07-11)

🛠 Build System

♻️ Chores

🔖 Miscellaneous

1.2.30 (2021-07-11)

🛠 Build System

♻️ Chores

1.2.29 (2021-06-21)

♻️ Chores

1.2.28 (2021-06-02)

♻️ Chores

1.2.27 (2021-05-17)

♻️ Chores

1.2.26 (2021-05-17)

♻️ Chores

1.2.25 (2021-02-12)

♻️ Chores

1.2.24 (2020-12-10)

♻️ Chores

1.2.23 (2020-08-09)

♻️ Chores

1.2.22 (2020-07-05)

♻️ Chores

1.2.21 (2020-06-27)

♻️ Chores

1.2.20 (2020-06-23)

🔖 Miscellaneous

1.2.19 (2020-06-20)

♻️ Chores

1.2.18 (2020-06-19)

🐛 Bug Fixes

  • test: update test and use jest replace mocha (815abde)

🚨 Tests

1.2.17 (2020-06-19)

♻️ Chores

1.2.16 (2020-06-11)

Note: Version bump only for package find-yarn-workspace-root2

1.2.15 (2020-06-06)

Features

1.2.14 (2020-06-06)

Note: Version bump only for package find-yarn-workspace-root2

1.2.13 (2020-05-23)

Note: Version bump only for package find-yarn-workspace-root2

1.2.12 (2020-05-10)

Note: Version bump only for package find-yarn-workspace-root2

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.2.1 (2018-08-30)

Bug Fixes

  • add typescript declaration (7c9c96f)

1.2.0 (2018-08-09)

Features

  • allow new manifest.workspaces.packages format (5521d97)
  • make initial path optional (475aaff)

1.1.0 (2018-03-23)

Features

  • allow new manifest.workspaces.packages format (5521d97)

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.