Skip to content

Commit

Permalink
feat(market): do not use --registry if not specified, fix #257
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Dec 19, 2023
1 parent f14f01e commit 53d59ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/market/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-market",
"description": "Manage your bots and plugins with console",
"version": "2.7.1",
"version": "2.7.2",
"main": "lib/node/index.js",
"types": "lib/index.d.ts",
"exports": {
Expand Down
4 changes: 3 additions & 1 deletion plugins/market/src/node/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ class Installer extends Service {
private _install() {
const args: string[] = []
if (this.agent !== 'yarn') args.push('install')
args.push('--registry', this.endpoint)
if (this.config.endpoint) {
args.push('--registry', this.endpoint)
}
return this.exec(this.agent, args)
}

Expand Down

0 comments on commit 53d59ca

Please sign in to comment.