From 67b1828a25f8d80412184da7628e1fb6e947b9a2 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 11 Jul 2018 19:04:24 +0700 Subject: [PATCH] Require Node.js 6 --- .gitattributes | 3 +- .gitignore | 1 + .npmrc | 1 + .travis.yml | 3 +- license | 20 +++--------- package.json | 84 +++++++++++++++++++++++++------------------------- readme.md | 2 +- 7 files changed, 52 insertions(+), 62 deletions(-) create mode 100644 .npmrc diff --git a/.gitattributes b/.gitattributes index 391f0a4..6313b56 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ -* text=auto -*.js text eol=lf +* text=auto eol=lf diff --git a/.gitignore b/.gitignore index 3c3629e..239ecff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +yarn.lock diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..43c97e7 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-lock=false diff --git a/.travis.yml b/.travis.yml index 97519af..2ae9d62 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: node_js node_js: + - '10' + - '8' - '6' - - '4' diff --git a/license b/license index 654d0bf..e7af2f7 100644 --- a/license +++ b/license @@ -1,21 +1,9 @@ -The MIT License (MIT) +MIT License Copyright (c) Sindre Sorhus (sindresorhus.com) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/package.json b/package.json index 4f19de8..944ab17 100644 --- a/package.json +++ b/package.json @@ -1,44 +1,44 @@ { - "name": "clear-module", - "version": "2.1.0", - "description": "Clear a module from the cache", - "license": "MIT", - "repository": "sindresorhus/clear-module", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "clear", - "module", - "require", - "import", - "cache", - "uncache", - "uncached", - "unrequire", - "derequire", - "delete", - "del", - "remove", - "rm" - ], - "dependencies": { - "caller-path": "^2.0.0", - "resolve-from": "^3.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - } + "name": "clear-module", + "version": "2.1.0", + "description": "Clear a module from the cache", + "license": "MIT", + "repository": "sindresorhus/clear-module", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "clear", + "module", + "require", + "import", + "cache", + "uncache", + "uncached", + "unrequire", + "derequire", + "delete", + "del", + "remove", + "rm" + ], + "dependencies": { + "caller-path": "^2.0.0", + "resolve-from": "^4.0.0" + }, + "devDependencies": { + "ava": "*", + "xo": "*" + } } diff --git a/readme.md b/readme.md index 52ddb18..889f24a 100644 --- a/readme.md +++ b/readme.md @@ -8,7 +8,7 @@ Useful for testing purposes when you need to freshly import a module. ## Install ``` -$ npm install --save clear-module +$ npm install clear-module ```