Skip to content

Commit

Permalink
chore: add publishConfig.access=public to package.json
Browse files Browse the repository at this point in the history
Was getting this error from npm on publish:

```
npm ERR! code E402
npm ERR! 402 Payment Required - PUT https://registry.npmjs.org/@readme%2fmicro - You must sign up for private packages

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/domh/.npm/_logs/2023-05-05T11_00_56_731Z-debug-0.log
```

It defaults to access=restricted for scoped packages

https://docs.npmjs.com/cli/v9/using-npm/config?v=true#access
  • Loading branch information
domharrington committed May 5, 2023
1 parent e887052 commit eff806d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
"nock": "^13.3.0",
"prettier": "^2.8.7"
},
"prettier": "@readme/eslint-config/prettier"
"prettier": "@readme/eslint-config/prettier",
"publishConfig": {
"access": "public"
}
}

0 comments on commit eff806d

Please sign in to comment.