2.0.0 • Published 4 years ago

find-yarn-workspace-root v2.0.0

Weekly downloads
959,503
License
Apache-2.0
Repository
github
Last release
4 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.

@toptal/eslint-plugin-davinci@toptal/davinci-engineeasy-select-rnkilli8n-react-native-fast-image@lucat1/linaria@sirius-black/taro-clithrustpakreact-native-yarn-workspaceregeniepenguins-oclif@infinitebrahmanuniverse/nolb-find@everything-registry/sub-chunk-1669wds@graphql-portal/config@gethappy/cliyarnwyoufyyoufy-agentyarn-lifelineyarn-workspaces-foreachyarn-workspaces-listyarn-update-local@gluestack-ui/nativewind-utils@harrysong/helper@marionebl/esbuild-devserverless-webpackserverless-webpack-with-logsserverless-rspacksouvikns-ocliftest-dusame-dev-clitf-nexttgale-instrument-cratarojs-clitarojs-helpersps-clismart-patch-packagetest-solidity-npm@lumiguide/lumi-rescript-devupgrade-dependentsvite-plugin-linaria-styledeslint-plugin-import-monorepo@jwangyangls/next-pack@jtma/helpereslint-import-resolver-workspaces@kodinghandle/bullswap-lib@kaliber/buildexpo-workspacesexpo-yarn-workspaces@kxxt/patch-package@lidofinance/yarn-workspaces-listexpo-module-scripts@gluestack/ui-next-adapter@gluestack/ui-next-adapter-dev@gift-adv/taro-cli@innoswap/coregluestack-ui-scripts@nosplatform/react-scripts@mitch528/patch-package@ntucker/linaria-webpack5-loader@olympfin/olymp-swap-lib@opamp/coregrouplink-dev-cli@oclif/dev-cli@miblanchard/patch-package@materia-dex/materia-contracts-proxyfrontful-environment@metasoccer/config@maman/patch-packagefind-webpack@milahu/patch-package@milahu/patch-package-with-pnpm-support@minifishjs/helper@myicon/svgsgatsby-dev-cligdu@nodeberry/solidity-payment-processor@noomorph/patch-packageexpo-cli@kevinwolf/expo-enable-hooks@khulnasoft/github-actionember-electron@dword-design/get-package-string@dword-design/is-workspace-root@rtarojs/helper@dymp/dylphin-cli@pnpm/patch-package@gslohar/patch-package@gtarojs/cli@gtarojs/helper@heroku/oclif-dev-cli@heroku-cli/dev-clidv-scriptsember-cliember-cli-dependency-checker@jaredpalmer/workspace-tools@jduarter/expo-cli@jitl/linariaesbuild-devhash-workspace@rasphilco/dev-cli
2.0.0

4 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.1.0

6 years ago