Np: Scoped package publication detection fails

Created on 27 Feb 2020  路  4Comments  路  Source: sindresorhus/np

Description

I have a scoped package which is already publicly released (release on npm) and now I want to integrate "np" in my release process. When running "np" it tells me "This scoped repo @wireapp/protocol-messaging hasn't been published. Do you want to publish it publicly?" which is wrong.

I tried adding the following to my "package.json" but it didn't help:

"publishConfig": {
  "access": "public"
},

Steps to reproduce

  1. Checkout my repository: https://github.com/wireapp/generic-message-proto/
  2. Run "np"

Expected behavior

The "np" tool should not think (log) that "@wireapp/protocol-messaging" hasn't been published.

Environment

np - 6.2.0
Node.js - 12.11.0
npm - 6.10.1
Git - 2.16.2.windows.1
OS - Windows 10

bug help wanted

Most helpful comment

Seems like a duplicate of https://github.com/sindresorhus/np/issues/504. Also facing the same issue, so decided to downgrade to v5.2.1 for now

All 4 comments

Seems like a duplicate of https://github.com/sindresorhus/np/issues/504. Also facing the same issue, so decided to downgrade to v5.2.1 for now

Just want to mention that we have this same issue - it's wreaking havoc on all of our org packages, every time someone publishes its made private and our builds go down. Happy to help out with getting this patched up if there's anything I can do to move it along!

Same here. Scoped package already published publicly and np fails to detect it.

If anyone wants to work on this, see the initial attempt and feedback in https://github.com/sindresorhus/np/pull/511.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

artivilla picture artivilla  路  5Comments

kapooostin picture kapooostin  路  5Comments

nickthesing picture nickthesing  路  5Comments

bennycode picture bennycode  路  4Comments

sindresorhus picture sindresorhus  路  7Comments