@@ -2,11 +2,6 @@ module Node = {
22 module Path = {
33 @module ("path" ) external join2 : (string , string ) => string = "join"
44 @module ("path" ) @variadic external join : array <string > => string = "join"
5- @module ("path" ) external dirname : string => string = "dirname"
6- }
7-
8- module URL = {
9- @module ("url" ) external fileURLToPath : string => string = "fileURLToPath"
105 }
116
127 module Process = {
@@ -19,14 +14,9 @@ module Node = {
1914 }
2015
2116 module Fs = {
22- @module ("fs" ) external readFileSync : string => string = "readFileSync"
23- @module ("fs" ) external writeFileSync : (string , string ) => unit = "writeFileSync"
24- @module ("fs" ) external mkdirSync : string => option <string > = "mkdirSync"
2517 @module ("fs" ) external existsSync : string => bool = "existsSync"
2618 @module ("fs" ) external readdirSync : string => array <string > = "readdirSync"
2719 @module ("node:fs/promises" ) external writeFile : (string , string ) => promise <unit > = "writeFile"
28- @module ("node:fs/promises" ) external unlink : string => promise <unit > = "unlink"
29- @module ("node:fs/promises" ) external lstat : string => promise <'a > = "lstat"
3020 }
3121
3222 module Buffer = {
@@ -35,10 +25,6 @@ module Node = {
3525 }
3626
3727 module ChildProcess = {
38- type execSyncOpts = {stdio ?: string , cwd ?: string }
39- @module ("child_process" )
40- external execFileSync : (string , array <string >, execSyncOpts ) => Buffer .t = "execFileSync"
41-
4228 type spawnSyncReturns = {stdout : Buffer .t }
4329 @module ("child_process" )
4430 external spawnSync : (string , array <string >) => spawnSyncReturns = "spawnSync"
0 commit comments