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@crossed/next-adapter@cypress/github-action@cypress/instrument-cra@cosva-lab/serverless-webpack@d-bigfish/cli@dev-spendesk/fab-cli@dotplants/expo-yarn-workspaces@borealisswap/borealis-swap-lib@rtarojs/helperjesh-calculationjetbrains-jslayer-gen@opamp/coresps-clisouvikns-oclif@appraised/patch-package@aviinash_jha/react-native-test_multiply@agreejs/cli@afria/afria-libraries@bitjson/instrument-cra@chakra-swap/core@0x-jerry/patch-package@4c/init@4c/jest-preset@abbo/patch-package@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deploy@decisiv/babel-plugin-styled-components-references@dianlemel/patch-package@dashevo/oclif@datlas/instrument-crayarnwyarn-lifelineyarn-workspaces-foreachyarn-workspaces-listyarn-update-localyoufyyoufy-agentupgrade-dependents@potatohd/tf-next@dword-design/get-package-string@dword-design/is-workspace-root@dymp/dylphin-cli@gtarojs/cli@gtarojs/helper@gslohar/patch-package@harrysong/helper@fluencelabs/oclif@fortawesome/ember-fontawesome@heroku-cli/dev-cli@heroku/oclif-dev-cli@flatfishjs/helper@edwinpb/scany@eliteswap/v2-core@gift-adv/taro-cli@gethappy/cli@gluestack/ui-next-adapter@gluestack/ui-next-adapter-dev@gluestack-ui/nativewind-utils@innoswap/core@labiebhn_/react-native-multiplier@kxxt/patch-package@lidofinance/yarn-workspaces-list@lumiguide/lumi-rescript-dev@miblanchard/patch-package@marionebl/esbuild-dev@materia-dex/materia-contracts-proxy@myicon/svgs@nodeberry/solidity-payment-processor@expo/webpack-config@expo/oclif-dev-cli@excitare/cli-command-build@excitare/cli-command-start@excitare/cli-config-next@excitare/cli-config-webpack@fangchan/taro-cli@minifishjs/helper@milahu/patch-package@milahu/patch-package-with-pnpm-support@metasoccer/config@mitch528/patch-package
2.0.0

5 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.1.0

8 years ago