Skip to content

Commit

Permalink
📦 Rebuild files
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Sep 6, 2021
1 parent 3b04494 commit 50437ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17260,6 +17260,7 @@ const fs = __nccwpck_require__(5630)
const readfiles = __nccwpck_require__(5884)
const { exec } = __nccwpck_require__(3129)
const core = __nccwpck_require__(2186)
const path = __nccwpck_require__(5622)

// From https://github.com/toniov/p-iteration/blob/master/lib/static-methods.js - MIT © Antonio V
const forEach = async (array, callback) => {
Expand Down Expand Up @@ -17343,7 +17344,11 @@ const copy = async (src, dest, deleteOrphaned, exclude) => {
for (const file of destFileList) {
if (srcFileList.indexOf(file) === -1) {
core.debug(`Found a orphaned file in the target repo - ${ dest }${ file }`)
await fs.remove(`${ dest }${ file }`)
if (exclude.includes(path.join(src, file))) {
core.debug(`Excluding file ${ file }`)
} else {
await fs.remove(`${ dest }${ file }`)
}
}
}
}
Expand Down

0 comments on commit 50437ed

Please sign in to comment.