Switch to esm, add #export statement to newt, tweaks to LSP

This commit is contained in:
2026-02-21 15:08:15 -08:00
parent c54b856f0b
commit 0a5ad3cc9b
22 changed files with 251 additions and 165 deletions

View File

@@ -7,6 +7,8 @@ export interface Handle {
buf: Uint8Array;
}
// Some of this was written for Idris and is not used by newt
interface Process {
argv: string[];
platform: string;
@@ -49,6 +51,9 @@ export let shim: NodeShim = {
},
writeSync(fd: number, data: string) {
shim.stdout += data;
},
readSync() {
return 0;
}
},
process: {