chore(normalize-packages): add --access public to npm publish
Only for non-private packages without existing `postversion` script.
This commit is contained in:
@@ -65,7 +65,7 @@ require('exec-promise')(() =>
|
||||
const originalScripts = scripts
|
||||
|
||||
if (!pkg.private && !('postversion' in scripts)) {
|
||||
scripts = { ...scripts, postversion: 'npm publish' }
|
||||
scripts = { ...scripts, postversion: 'npm publish --access public' }
|
||||
}
|
||||
|
||||
const prepublish = scripts.prepublish
|
||||
|
||||
Reference in New Issue
Block a user