Skip to content

Commit

Permalink
Fix: Log Path
Browse files Browse the repository at this point in the history
  • Loading branch information
edelciomolina committed Dec 6, 2023
1 parent 08c649a commit 6595547
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,19 @@ var Generate = (() => {

// Obtém o nome do arquivo de saída relativo ao diretório raiz
function normalizePath(filePath) {
core.info(`antes: ${filePath}`)

let ret = filePath //
.replace(path.join(process.cwd(), bundle_config_folder), '')
.replace(/\\/g, '/')

core.info(`depois: ${ret}`)

let retPath
if (ret.startsWith('/')) {
retPath = ret.substring(1)
} else {
retPath = ret
}

const parts = retPath.split('/')
parts.shift()
return parts.join('/')
core.info(`Processing: ${retPath}`)
return retPath
}

// Cria o objeto bundle correspondente ao arquivo
Expand Down

0 comments on commit 6595547

Please sign in to comment.