Skip to content

Commit

Permalink
fix: Remove --registry https://registry.npmjs.com/` for npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Jul 24, 2024
1 parent 1654155 commit c88d56c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nu/npm.nu
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def 'publish-each-pkg' [
cd $rls_dir
let dist_tag = ($'($npm_dir)/app/package.json' | open | get distTag)
print $'Publishing package: ($env.node_pkg) to ($dist_tag) tag...'; hr-line
npm publish --access public --tag $dist_tag --registry https://registry.npmjs.com/
npm publish --access public --tag $dist_tag
cd $pkg_dir
}
print (char nl)
Expand Down Expand Up @@ -200,7 +200,7 @@ def 'publish-base-pkg' [
pnpm install --no-frozen-lockfile; pnpm build
let tag = ('package.json' | open | get distTag)
print $'Publishing nushell package to npm ($tag) tag...'
npm publish --access public --tag $tag --registry https://registry.npmjs.com/
npm publish --access public --tag $tag
print $'(char nl)Start to sync packages to npmmirror.com ...'
if $sync { cnpm sync nushell }
}

0 comments on commit c88d56c

Please sign in to comment.