2.0.0 • Published 6 years ago

find-yarn-workspace-root v2.0.0

Weekly downloads
959,503
License
Apache-2.0
Repository
github
Last release
6 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-styledjesh-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@zkochan/patch-package@zytra-tech/zy-webpackagree-clifrontful-environmentgdugatsby-dev-clidv-scriptsember-cli-dependency-checkereslint-plugin-import-monorepoeslint-import-resolver-workspacesesbuild-devember-electronember-clieto-dev-cliexpo-workspacesexpo-yarn-workspacesexpo-clifind-webpackcreate-oclifcopy-packagedaryl-oclif-dev-clicypress-test-resultscaf_dcinaboxdp-taro-clidp-taro-helper@opamp/coresps-clisouvikns-oclifyarnwyarn-lifelineyarn-workspaces-foreachyarn-workspaces-listyarn-update-localyoufyyoufy-agentupgrade-dependentsmps-climonorepo-dependenciesoclif-pnpmoclif-rcoclifpatch-sibling-packagepatch-packagepatch-package-bun-fixpatch-package-by-agupatch-package-ignore-missingsbg-serverreact-native-adarsh_react_native_video_playerreact-native-avinash_jha_test_pluginreact-native-moosa-lib-for-testserverless-rspackreact-native-yarn-workspaces-v2
2.0.0

6 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago