Skip to content

Commit

Permalink
chore: more IoC and fakettp upgrade for context abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
3p3r committed Jun 24, 2024
1 parent c993850 commit 5e63e26
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 442 deletions.
6 changes: 6 additions & 0 deletions mods/process.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// @ts-ignore - no types
import process from "process/browser";

let cwd = "/";

Object.assign(process, {
stdin: {},
stdout: {
Expand All @@ -10,6 +12,10 @@ Object.assign(process, {
write: (data: string) => console.error(data),
},
execArgv: [],
cwd: () => cwd,
chdir: (dir: string) => {
cwd = dir;
},
});

export default process;
Loading

0 comments on commit 5e63e26

Please sign in to comment.