Skip to content

Commit

Permalink
Update ReScript to v11 in dist/res and test/res
Browse files Browse the repository at this point in the history
  • Loading branch information
cannorin committed Jan 30, 2024
1 parent 2e7116c commit ea996cf
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 16 deletions.
7 changes: 5 additions & 2 deletions dist/res/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
File renamed without changes.
8 changes: 4 additions & 4 deletions dist/res/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
[email protected].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==
2 changes: 1 addition & 1 deletion test/res/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"@ocsigen/ts2ocaml": "link:../../"
},
"dependencies": {
"rescript": "^11.0.0-beta.3"
"rescript": "11.0.1"
}
}
3 changes: 2 additions & 1 deletion test/res/bsconfig.json → test/res/rescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"module": "commonjs",
"in-source": true
},
"suffix": ".bs.js"
"suffix": ".bs.js",
"uncurried": true
}
14 changes: 10 additions & 4 deletions test/res/src/main.res
Original file line number Diff line number Diff line change
@@ -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
Js.log(result->Ts.TranspileOutput.get_outputText)
8 changes: 4 additions & 4 deletions test/res/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
[email protected].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"
Expand Down

0 comments on commit ea996cf

Please sign in to comment.