Skip to content

Commit

Permalink
program.setFile resolves paths internally, providing a resolved path …
Browse files Browse the repository at this point in the history
…produces errors
  • Loading branch information
Addison committed Aug 22, 2024
1 parent 364f0b2 commit e8fba61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/FileFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class FileFactory {

public addFile<T extends BscFile>(destPath: string, contents: string) {
try {
return this.program.setFile<T>({ src: path.resolve(destPath), dest: destPath }, contents);
return this.program.setFile<T>(destPath, contents);
} catch (error) {
console.error(`Error adding framework file: ${destPath} : ${error.message}`);
}
Expand Down

0 comments on commit e8fba61

Please sign in to comment.