find-yarn-workspace-root2
Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com
Last updated 7 months ago by bluelovers .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install find-yarn-workspace-root2 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.2.51                                ...           latest (7 months ago)

46 Versions

  • 1.2.51                                ...           7 months ago
  • 1.2.50                                ...           2 years ago
  • 1.2.49                                ...           3 years ago
  • 1.2.48                                ...           3 years ago
  • 1.2.47                                ...           4 years ago
  • 1.2.46                                ...           4 years ago
  • 1.2.45                                ...           4 years ago
  • 1.2.44                                ...           4 years ago
  • 1.2.43                                ...           4 years ago
  • 1.2.42                                ...           4 years ago
  • 1.2.41                                ...           4 years ago
  • 1.2.40                                ...           4 years ago
  • 1.2.39                                ...           4 years ago
  • 1.2.38                                ...           4 years ago
  • 1.2.37                                ...           4 years ago
  • 1.2.36                                ...           4 years ago
  • 1.2.35                                ...           4 years ago
  • 1.2.34                                ...           4 years ago
  • 1.2.32                                ...           5 years ago
  • 1.2.31                                ...           5 years ago
  • 1.2.29                                ...           5 years ago
  • 1.2.28                                ...           5 years ago
  • 1.2.27                                ...           5 years ago
  • 1.2.25                                ...           5 years ago
  • 1.2.24                                ...           5 years ago
  • 1.2.23                                ...           6 years ago
  • 1.2.22                                ...           6 years ago
  • 1.2.21                                ...           6 years ago
  • 1.2.20                                ...           6 years ago
  • 1.2.19                                ...           6 years ago
  • 1.2.18                                ...           6 years ago
  • 1.2.16                                ...           6 years ago
  • 1.2.15                                ...           6 years ago
  • 1.2.14                                ...           6 years ago
  • 1.2.13                                ...           6 years ago
  • 1.2.12                                ...           6 years ago
  • 1.2.11                                ...           6 years ago
  • 1.2.10                                ...           6 years ago
  • 1.2.8                                ...           6 years ago
  • 1.2.7                                ...           6 years ago
  • 1.2.6                                ...           7 years ago
  • 1.2.5                                ...           7 years ago
  • 1.2.4                                ...           7 years ago
  • 1.2.3                                ...           7 years ago
  • 1.2.2                                ...           7 years ago
  • 1.2.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 46
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |