diff --git a/.github/test-matrix.json b/.github/test-matrix.json index 27a4ce2..ff387a0 100644 --- a/.github/test-matrix.json +++ b/.github/test-matrix.json @@ -1,4 +1,4 @@ { "os": ["ubuntu-latest"], - "node-version": [14, 16, 18] + "node-version": [16, 18] } diff --git a/README.md b/README.md index e7a0085..da5d8ab 100644 --- a/README.md +++ b/README.md @@ -11,15 +11,15 @@ Match files using the patterns the shell uses, like stars and stuff. ## Install ``` bash -$ npm install glob-promise glob +npm install glob-promise glob ``` -###### NOTE: +###### NOTE [`glob`][] is set as a `peerDependency` in [`package.json`][] -- `npm` \<= `2` will automatically install `peerDependencies` if they are not explicitly depended upon higher in the dependency tree. -- `npm` \>= 3 will no longer automatically install `peerDependencies`. +- `npm` \>= 7 will automatically install `peerDependencies` +- `npm` \<= 6 will **not** automatically install `peerDependencies`. You will need to manually add `glob` as a dependency to your project for `glob-promise` to work. diff --git a/docs/README.md b/docs/README.md index 626f294..8708977 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,15 +3,15 @@ ## Install ```bash -$ npm install glob-promise glob +npm install glob-promise glob ``` -###### NOTE: +###### NOTE [`glob`][glob] is set as a `peerDependency` in [`package.json`](package.json) -- `npm` <= `2` will automatically install `peerDependencies` if they are not explicitly depended upon higher in the dependency tree. -- `npm` >= 3 will no longer automatically install `peerDependencies`. +- `npm` >= 7 will automatically install `peerDependencies` +- `npm` <= 6 will **not** automatically install `peerDependencies`. You will need to manually add `glob` as a dependency to your project for `glob-promise` to work. @@ -59,7 +59,6 @@ glob('{foo,bar.baz}.txt', { nobrace: true }) > see [`Glob`](https://github.com/isaacs/node-glob#class-globglob) - #### options The option object will be directly passed to [glob](https://github.com/isaacs/node-glob#options). diff --git a/package.json b/package.json index f024042..3383878 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "test:watch": "tap test --watch", "test:ci": "tap test --100", "test:report": "opener coverage/lcov-report/index.html", - "postinstall": "npm-install-peers" }, "devDependencies": { "tap": "^16.3.0" @@ -42,7 +41,6 @@ "glob": "^8.0.3" }, "dependencies": { - "@types/glob": "^8.0.0", - "npm-install-peers": "^1.2.2" + "@types/glob": "^8.0.0" } }