diff options
author | Gar <gar+gh@danger.computer> | 2021-09-15 21:29:13 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-10-07 19:07:19 +0300 |
commit | a13d9d53ddf3e0f52f4a39fe116653bf40cf99e5 (patch) | |
tree | c281324e40798b6e8e1ed53a9a2d55dd8f87b91a /index.js | |
parent | 32e163fd10aace69d927dae46d04d64c04e5014b (diff) |
feat: drop node 10, 11, and programmatic api
BREAKING CHANGE:
- Drop official support for node versions less than v12.
- Drop support for `require('npm')`
- Update a few subdependencies that dropped node10 support, and brought
in the latest node-gyp
PR-URL: https://github.com/npm/cli/pull/3762
Credit: @wraithgar
Close: #3762
Reviewed-by: @fritzy
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/index.js b/index.js new file mode 100644 index 000000000..5447643e0 --- /dev/null +++ b/index.js @@ -0,0 +1,5 @@ +if (require.main === module) { + require('./lib/cli.js')(process) +} else { + throw new Error('The programmatic API was removed in npm v8.0.0') +} |