Aborting the publish when got any options which are illegal

(花生PeA) #1

What I Wanted to Do

I type npm publish --run-dry (the right option is --dry-run) and publish a package I unwanted.

What Happened Instead

Aborting the publish when got any options which are illegal.

Details

The Publish is an action which is so dangerous and it can publish some private file on the public. It seems more reasonable that aborting publish when got any options which are illegal.

Platform Info

$ npm --versions
{ 'swan-ssr-requester': '2.0.1',
  npm: '6.4.1',
  ares: '1.15.0',
  cldr: '34.0',
  http_parser: '2.8.0',
  icu: '63.1',
  llhttp: '1.0.1',
  modules: '67',
  napi: '3',
  nghttp2: '1.34.0',
  node: '11.4.0',
  openssl: '1.1.0j',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.24.0',
  v8: '7.0.276.38-node.13',
  zlib: '1.2.11' }
$ node -p process.platform
darwin