mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
reorg: move JS ops implementations to cli/js/ops/, part 1 (#4264)
Following JS ops were moved to separate files in cli/js/ops directory: - compiler - dispatch_json - dispatch_minimal - errors - fetch - fs_events - os - random - repl - resources - runtime_compiler - runtime - tty
This commit is contained in:
parent
b9037c86ed
commit
1b6f831875
57 changed files with 304 additions and 213 deletions
|
@ -26,8 +26,8 @@ if (parsedArgs._.length === 0) {
|
|||
|
||||
const files: Record<string, { content: string }> = {};
|
||||
for (const filename of parsedArgs._) {
|
||||
const base = pathBase(filename);
|
||||
const content = await Deno.readFile(filename);
|
||||
const base = pathBase(filename as string);
|
||||
const content = await Deno.readFile(filename as string);
|
||||
const contentStr = new TextDecoder().decode(content);
|
||||
files[base] = { content: contentStr };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue