find-yarn-workspace-root
Advanced tools
Comparing version 1.2.1 to 2.0.0
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="2.0.0"></a> | ||
# [2.0.0](https://github.com/square/find-yarn-workspace-root/compare/v1.2.1...v2.0.0) (2020-06-11) | ||
### Chores | ||
* **deps:** update micromatch to v4 ([c7e8189](https://github.com/square/find-yarn-workspace-root/commit/c7e8189)) | ||
### BREAKING CHANGES | ||
* **deps:** requires Node >= 8.6 | ||
<a name="1.2.1"></a> | ||
@@ -7,0 +22,0 @@ ## [1.2.1](https://github.com/square/find-yarn-workspace-root/compare/v1.2.0...v1.2.1) (2018-08-30) |
'use strict'; | ||
const fs = require('fs-extra'); | ||
const fs = require('fs'); | ||
const micromatch = require('micromatch'); | ||
@@ -49,6 +49,6 @@ const path = require('path'); | ||
const file = path.join(dir, 'package.json'); | ||
if (fs.pathExistsSync(file)) { | ||
return fs.readJsonSync(file); | ||
if (fs.existsSync(file)) { | ||
return JSON.parse(fs.readFileSync(file, 'utf8')); | ||
} | ||
return null; | ||
} |
{ | ||
"name": "find-yarn-workspace-root", | ||
"version": "1.2.1", | ||
"version": "2.0.0", | ||
"description": "Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com", | ||
@@ -14,2 +14,4 @@ "repository": { | ||
"scripts": { | ||
"lint": "yarn lint:js", | ||
"lint:js": "eslint .", | ||
"test": "mocha tests/**/*-test.js", | ||
@@ -22,13 +24,13 @@ "commitmsg": "commitlint -e $GIT_PARAMS" | ||
"dependencies": { | ||
"fs-extra": "^4.0.3", | ||
"micromatch": "^3.1.4" | ||
"micromatch": "^4.0.2" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^5.2.6", | ||
"@commitlint/config-conventional": "^5.2.3", | ||
"chai": "^4.1.2", | ||
"husky": "^0.14.3", | ||
"mocha": "^4.0.1", | ||
"standard-version": "^4.2.0" | ||
"@commitlint/cli": "^7", | ||
"@commitlint/config-conventional": "^7", | ||
"chai": "^4.2.0", | ||
"eslint": "^6.8.0", | ||
"husky": "^3", | ||
"mocha": "^7", | ||
"standard-version": "^4" | ||
} | ||
} |
# find-yarn-workspace-root | ||
[![Build Status](https://travis-ci.org/square/find-yarn-workspace-root.svg?branch=master)](https://travis-ci.org/square/find-yarn-workspace-root) | ||
![CI](https://github.com/square/find-yarn-workspace-root/workflows/CI/badge.svg) | ||
@@ -8,2 +8,3 @@ Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com | ||
## Installation | ||
```bash | ||
@@ -14,2 +15,3 @@ yarn add find-yarn-workspace-root | ||
## Usage | ||
```js | ||
@@ -43,11 +45,15 @@ const findWorkspaceRoot = require('find-yarn-workspace-root'); | ||
Releases are handled by Travis CI once a build succeeds on `master`. To trigger a release, bump the version using `standard-version`: | ||
To trigger a release, bump the version using `standard-version`: | ||
```bash | ||
$(yarn bin)/standard-version | ||
``` | ||
1. To update the CHANGELOG, bump the version in `package.json`, and create a git tag, run: | ||
That should update the CHANGELOG, bump the version in `package.json`, and create a git tag. Then, just `git push && git push --tags`. | ||
```bash | ||
$(yarn bin)/standard-version | ||
``` | ||
2. `git push && git push --tags` | ||
3. `npm publish` | ||
--- | ||
Copyright 2017 Square, Inc. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
16706
1
57
7
1
+ Addedbraces@3.0.3(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedto-regex-range@5.0.1(transitive)
- Removedfs-extra@^4.0.3
- Removedarr-diff@4.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedarray-unique@0.3.2(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedatob@2.1.2(transitive)
- Removedbase@0.11.2(transitive)
- Removedbraces@2.3.2(transitive)
- Removedcache-base@1.0.1(transitive)
- Removedclass-utils@0.3.6(transitive)
- Removedcollection-visit@1.0.0(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedcopy-descriptor@0.1.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddefine-property@0.2.51.0.02.0.2(transitive)
- Removedexpand-brackets@2.1.4(transitive)
- Removedextend-shallow@2.0.13.0.2(transitive)
- Removedextglob@2.0.4(transitive)
- Removedfill-range@4.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfragment-cache@0.2.1(transitive)
- Removedfs-extra@4.0.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-value@2.0.6(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-value@0.3.11.0.0(transitive)
- Removedhas-values@0.1.41.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-data-descriptor@1.0.1(transitive)
- Removedis-descriptor@0.1.71.0.3(transitive)
- Removedis-extendable@0.1.11.0.1(transitive)
- Removedis-number@3.0.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.03.0.1(transitive)
- Removedjsonfile@4.0.0(transitive)
- Removedkind-of@3.2.24.0.06.0.3(transitive)
- Removedmap-cache@0.2.2(transitive)
- Removedmap-visit@1.0.0(transitive)
- Removedmicromatch@3.1.10(transitive)
- Removedmixin-deep@1.3.2(transitive)
- Removedms@2.0.0(transitive)
- Removednanomatch@1.2.13(transitive)
- Removedobject-copy@0.1.0(transitive)
- Removedobject-visit@1.0.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedpascalcase@0.1.1(transitive)
- Removedposix-character-classes@0.1.1(transitive)
- Removedregex-not@1.0.2(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedresolve-url@0.2.1(transitive)
- Removedret@0.1.15(transitive)
- Removedsafe-regex@1.1.0(transitive)
- Removedset-value@2.0.1(transitive)
- Removedsnapdragon@0.8.2(transitive)
- Removedsnapdragon-node@2.1.1(transitive)
- Removedsnapdragon-util@3.0.1(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsource-map-resolve@0.5.3(transitive)
- Removedsource-map-url@0.4.1(transitive)
- Removedsplit-string@3.1.0(transitive)
- Removedstatic-extend@0.1.2(transitive)
- Removedto-object-path@0.3.0(transitive)
- Removedto-regex@3.0.2(transitive)
- Removedto-regex-range@2.1.1(transitive)
- Removedunion-value@1.0.1(transitive)
- Removeduniversalify@0.1.2(transitive)
- Removedunset-value@1.0.0(transitive)
- Removedurix@0.1.0(transitive)
- Removeduse@3.1.1(transitive)
Updatedmicromatch@^4.0.2