2.0.0 • Published 5 years ago

find-yarn-workspace-root v2.0.0

Weekly downloads
959,503
License
Apache-2.0
Repository
github
Last release
5 years ago

find-yarn-workspace-root

CI

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

To trigger a release, bump the version using standard-version:

  1. To update the CHANGELOG, bump the version in package.json, and create a git tag, run:

    $(yarn bin)/standard-version
  2. git push && git push --tags

  3. npm publish


Copyright 2017 Square, Inc.

easy-select-rnkilli8n-react-native-fast-image@lucat1/linaria@sirius-black/taro-clithrustpakreact-native-yarn-workspaceregeniepenguins-oclif@infinitebrahmanuniverse/nolb-find@everything-registry/sub-chunk-1669tarojs-clitarojs-helpertest-dusame-dev-cliwdstest-solidity-npmtf-nexttgale-instrument-cravite-plugin-linaria-styled@borealisswap/borealis-swap-libjesh-calculationjetbrains-jslayer-genhash-workspacelibkitmanan-react-native-expo-authorize-netlandakonfig-climedusa-dev-cli@titian-design/compiler@thomasdashney/tf-next@turborepo/workspace-tools@toptal/eslint-plugin-davinci@toptal/davinci-bootstrap@toptal/davinci-cli-shared@toptal/davinci-monorepo@toptal/davinci-engine@toptal/davinci-storybook@vine77/vsce@vibe.sh/tf-next@userdocs/runner@vnxjs/helper@vnmfjs/helper@unts/patch-package@upmpjs/cli@upmpjs/helper@upmpjs/upmp-runner@xswap/v2-core@ygally/patch-package@zalastax/nolb-find@staxjs/cli@staxjs/scripts@strong-js/cli@zkochan/patch-package@zytra-tech/zy-webpackagree-cli@0x-jerry/patch-package@gslohar/patch-package@4c/init@4c/jest-preset@harrysong/helper@graphql-portal/config@abbo/patch-package@gtarojs/cli@gtarojs/helper@agreejs/cli@edwinpb/scany@afria/afria-libraries@crossed/next-adapter@cosva-lab/serverless-webpack@opamp/coresps-clisouvikns-oclif@bitjson/instrument-cra@chakra-swap/core@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deployyarnwyarn-lifelineyarn-workspaces-foreachyarn-workspaces-listyarn-update-localyoufyyoufy-agentupgrade-dependents@potatohd/tf-next@labiebhn_/react-native-multiplier@kxxt/patch-package@lidofinance/yarn-workspaces-list@myicon/svgsmps-climonorepo-dependenciesoclif-pnpmoclif-rcoclifpatch-sibling-packagepatch-packagepatch-package-bun-fixpatch-package-by-agupatch-package-ignore-missing
2.0.0

5 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago