Skip to content

Commit

Permalink
fix(deploy): create file before writing
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Aug 22, 2023
1 parent dccf920 commit 55d6766
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/sfpowerscripts-cli/src/outputs/FileOutputHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export default class FileOutputHandler {
}

public writeOutput(fileName: string, output: string ) {
if (!fs.existsSync(path.join(this.containerFolder, fileName))) {
fs.createFileSync(path.join(this.containerFolder, fileName));
}
fs.writeFileSync(path.join(this.containerFolder, fileName), output);
};

Expand Down

0 comments on commit 55d6766

Please sign in to comment.