Skip to content

Commit

Permalink
make output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
schickling committed Sep 22, 2023
1 parent 7cfd397 commit daa5f77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node-scripts/src/fs-write-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Cause, Effect } from 'effect'
const main = Effect.gen(function* ($) {
const fs = yield* $(FS.FileSystem)

yield* $(fs.makeDirectory('output'))
yield* $(fs.writeFileString('output/fs-write-file.txt', 'Hello World!'))

console.log('Wrote file (output/fs-write-file.txt)')
Expand Down

0 comments on commit daa5f77

Please sign in to comment.