From c88d56c4363ab2d666c662b454b65fab5ca1f875 Mon Sep 17 00:00:00 2001 From: hustcer Date: Wed, 24 Jul 2024 16:26:28 +0800 Subject: [PATCH] fix: Remove `--registry https://registry.npmjs.com/` for npm publish --- nu/npm.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nu/npm.nu b/nu/npm.nu index d96adac..02dac14 100644 --- a/nu/npm.nu +++ b/nu/npm.nu @@ -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) @@ -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 } }