diff --git a/src/client/plugin/usage-info.ts b/src/client/plugin/usage-info.ts index cf493e0..1e39b31 100644 --- a/src/client/plugin/usage-info.ts +++ b/src/client/plugin/usage-info.ts @@ -16,7 +16,5 @@ export function getUsageInfo() { ) : `//${location.host}${location.pathname}` const authToken = localStorage.getItem("npm") - return [ - `npm config set ${configBase}:_authToken "${authToken}"`, - ].join("\n") + return [`npm config set ${configBase}:_authToken "${authToken}"`].join("\n") } diff --git a/src/npm.ts b/src/npm.ts index 1ceab26..7d578c7 100644 --- a/src/npm.ts +++ b/src/npm.ts @@ -42,9 +42,7 @@ export function getNpmSaveCommands(registry: string, token: string) { const url = new URL(registry) const baseUrl = url.host + url.pathname - return [ - `npm config set //${baseUrl}:_authToken "${token}"`, - ] + return [`npm config set //${baseUrl}:_authToken "${token}"`] } export function saveNpmToken(token: string) {