Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Karrys <luke@lukekarrys.com>2021-11-03 23:49:57 +0300
committerGar <gar+gh@danger.computer>2021-11-04 17:18:36 +0300
commitcad9bc7af21da781c6858f65355ca3fdf4a06404 (patch)
tree6c3941266a2e559b7cc6f1ce1cab8a40bddf2283 /index.js
parentac2fabb8604db0dac852913d61c8415ae7464485 (diff)
chore: lint previously ignored files
PR-URL: https://github.com/npm/cli/pull/3986 Credit: @lukekarrys Close: #3986 Reviewed-by: @wraithgar
Diffstat (limited to 'index.js')
-rw-r--r--index.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/index.js b/index.js
index 5447643e0..570df352b 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,4 @@
-if (require.main === module) {
+if (require.main === module)
require('./lib/cli.js')(process)
-} else {
+else
throw new Error('The programmatic API was removed in npm v8.0.0')
-}