diff --git a/packages/node-api/src/cli-utils.ts b/packages/node-api/src/cli-utils.ts index ec66dc211..f3105f07f 100644 --- a/packages/node-api/src/cli-utils.ts +++ b/packages/node-api/src/cli-utils.ts @@ -57,7 +57,6 @@ export function isVersionValid(version) { return semver.satisfies(version, `>=${MIN_NODE_VERSION}`); } - /** * Retrieve all addresses defined in the config file. * Verdaccio is able to listen multiple ports diff --git a/src/api/web/html/manifest.ts b/src/api/web/html/manifest.ts index 6faa8861f..53bccda2a 100644 --- a/src/api/web/html/manifest.ts +++ b/src/api/web/html/manifest.ts @@ -9,7 +9,11 @@ export type Manifest = { const debug = buildDebug('verdaccio'); -export function getManifestValue(manifestItems: string[], manifest, basePath: string = ''): string[] { +export function getManifestValue( + manifestItems: string[], + manifest, + basePath: string = '' +): string[] { return manifestItems?.map((item) => { debug('resolve item %o', item); const resolvedItem = `${basePath}${manifest[item]}`; diff --git a/src/api/web/html/template.ts b/src/api/web/html/template.ts index 29c3f998f..e0906ac91 100644 --- a/src/api/web/html/template.ts +++ b/src/api/web/html/template.ts @@ -52,7 +52,9 @@ export default function renderTemplate(template: Template, manifest: WebpackMani
${template?.scriptsbodyBefore ? template.scriptsbodyBefore.join('') : ''} - ${getManifestValue(template.manifest.js, manifest, template?.options.base).map((item) => ``).join('')} + ${getManifestValue(template.manifest.js, manifest, template?.options.base) + .map((item) => ``) + .join('')} ${template?.scriptsBodyAfter ? template.scriptsBodyAfter.join('') : ''}