diff --git a/dist/res/package.json b/dist/res/package.json index 887a63db..99faf0a8 100644 --- a/dist/res/package.json +++ b/dist/res/package.json @@ -11,7 +11,10 @@ ], "author": "", "license": "Apache-2.0", - "dependencies": { - "rescript": "^11.0.0-beta.3" + "devDependencies": { + "rescript": "11.0.1" + }, + "peerDependencies": { + "rescript": "^11.0.1" } } diff --git a/dist/res/bsconfig.json b/dist/res/rescript.json similarity index 100% rename from dist/res/bsconfig.json rename to dist/res/rescript.json diff --git a/dist/res/yarn.lock b/dist/res/yarn.lock index 992ba920..405d1f49 100644 --- a/dist/res/yarn.lock +++ b/dist/res/yarn.lock @@ -2,7 +2,7 @@ # yarn lockfile v1 -rescript@^11.0.0-beta.3: - version "11.0.0-beta.3" - resolved "https://registry.yarnpkg.com/rescript/-/rescript-11.0.0-beta.3.tgz#f883a19aa8cb2ab162fd2c9f3d46d2c05cc5710b" - integrity sha512-j3YT3VdWMoHgwL4RydKJm9O/VIpN3NTI6keP18rZVJ8ansRKgkHYGLaIwoG6iVqSYYwBjb6d8l8oZ1Jz0fmTeQ== +rescript@11.0.1: + version "11.0.1" + resolved "https://registry.yarnpkg.com/rescript/-/rescript-11.0.1.tgz#c74af134dc8a16d152169b2456d0720324835f54" + integrity sha512-7T4PRp/d0+CBNnY6PYKffFqo9tGZlvnZpboF/n+8SKS+JZ6VvXJO7W538VPZXf3EYx1COGAWWvkF9e/HgSAqHg== diff --git a/test/res/package.json b/test/res/package.json index 2117d6f3..d0843ca5 100644 --- a/test/res/package.json +++ b/test/res/package.json @@ -15,6 +15,6 @@ "@ocsigen/ts2ocaml": "link:../../" }, "dependencies": { - "rescript": "^11.0.0-beta.3" + "rescript": "11.0.1" } } diff --git a/test/res/bsconfig.json b/test/res/rescript.json similarity index 82% rename from test/res/bsconfig.json rename to test/res/rescript.json index 38340e3e..0dde58eb 100644 --- a/test/res/bsconfig.json +++ b/test/res/rescript.json @@ -9,5 +9,6 @@ "module": "commonjs", "in-source": true }, - "suffix": ".bs.js" + "suffix": ".bs.js", + "uncurried": true } diff --git a/test/res/src/main.res b/test/res/src/main.res index 165395f2..801d7626 100644 --- a/test/res/src/main.res +++ b/test/res/src/main.res @@ -1,7 +1,13 @@ -open Ts2ocaml +module Ts = Typescript.Export -let tsVersion = Typescript.Ts.version +let source = "let x: string = 'hello, world!'" -let x = Prop_types.ElementStatic.isRequired +let result = Ts.transpileModule( + ~input=source, + ~transpileOptions=Ts.TranspileOptions.make( + ~compilerOptions=Ts.CompilerOptions.make(~\"module"=CommonJS, ()), + (), + ), +) -let y = Scheduler__tracing.__interactionsRef \ No newline at end of file +Js.log(result->Ts.TranspileOutput.get_outputText) diff --git a/test/res/yarn.lock b/test/res/yarn.lock index 1f82cd1d..dcddde29 100644 --- a/test/res/yarn.lock +++ b/test/res/yarn.lock @@ -138,10 +138,10 @@ require-directory@^2.1.1: resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== -rescript@^11.0.0-beta.3: - version "11.0.0-beta.3" - resolved "https://registry.yarnpkg.com/rescript/-/rescript-11.0.0-beta.3.tgz#f883a19aa8cb2ab162fd2c9f3d46d2c05cc5710b" - integrity sha512-j3YT3VdWMoHgwL4RydKJm9O/VIpN3NTI6keP18rZVJ8ansRKgkHYGLaIwoG6iVqSYYwBjb6d8l8oZ1Jz0fmTeQ== +rescript@11.0.1: + version "11.0.1" + resolved "https://registry.yarnpkg.com/rescript/-/rescript-11.0.1.tgz#c74af134dc8a16d152169b2456d0720324835f54" + integrity sha512-7T4PRp/d0+CBNnY6PYKffFqo9tGZlvnZpboF/n+8SKS+JZ6VvXJO7W538VPZXf3EYx1COGAWWvkF9e/HgSAqHg== string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3"