mirror of https://github.com/abpframework/abp.git
2 changed files with 9 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||
|
import { Tree } from '@angular-devkit/schematics'; |
||||
|
|
||||
|
export function createFileSaver(tree: Tree) { |
||||
|
return (filePath: string, fileContent: string) => |
||||
|
tree.exists(filePath) |
||||
|
? tree.overwrite(filePath, fileContent) |
||||
|
: tree.create(filePath, fileContent); |
||||
|
} |
||||
Loading…
Reference in new issue