Skip to content

Commit

Permalink
Update src/RokuDeploy.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bronley Plumb <[email protected]>
  • Loading branch information
MilapNaik and TwitchBronBron authored Jan 16, 2024
1 parent 2ba8eca commit cc92e04
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/RokuDeploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,11 @@ export class RokuDeploy {
//`pattern` is some other glob magic
} else {
const fileNameAndExtension = path.basename(srcPath);
const foundFilePath = util.standardizePath(`${entry.dest ?? ''}/${fileNameAndExtension}`);
const assumedFilePath = util.stringReplaceInsensitive(srcPath, rootDir, '');
result = entry.dest ? foundFilePath : assumedFilePath;
if (entry.dest) {
result = util.standardizePath(`${entry.dest ?? ''}/${fileNameAndExtension}`);
} else {
result = util.stringReplaceInsensitive(srcPath, rootDir, '');
}
}

result = util.standardizePath(
Expand Down

0 comments on commit cc92e04

Please sign in to comment.