Skip to content

Commit

Permalink
fix: issue with wrong order of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
remie committed Dec 17, 2024
1 parent a477f00 commit 3961cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/Installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Installer = async (name: TSupportedApplications, path: string, opti
console.log(`Found updated plugin, uploading it to UPM on running instances of ${name}`);
const hostUrl = options.port ? `localhost:${options.port}` : `localhost`;
const baseUrl = options.username && options.password ? `http://${options.username}:${options.password}@${hostUrl}` : `http://${hostUrl}`;
await uploadToUPM(resolvePath(options.cwd || cwd(), path), baseUrl).catch(err => {
await uploadToUPM(baseUrl, resolvePath(options.cwd || cwd(), path), options.username || 'admin', options.password || 'admin').catch(err => {
console.log('Failed to upload plugin archive file to UPM', err);
});
} else {
Expand Down

0 comments on commit 3961cae

Please sign in to comment.