diff --git a/lib/postbuild.ts b/lib/postbuild.ts index 6056cc77..7e3373ec 100644 --- a/lib/postbuild.ts +++ b/lib/postbuild.ts @@ -20,7 +20,7 @@ const options = { files: ['dist/**/*.js'], from: from, to: (...args: Array) => { - const [match, _, __, filename] = args; + const [match, , , filename] = args; const [replacePattern, ...file] = match.split('/'); return path.relative(path.join(process.cwd(), path.dirname(filename)),