Skip to content

Commit 36fe205

Browse files
committed
Migrate bs-platform to rescript 9.1.0
1 parent c904ad3 commit 36fe205

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
},
3232
"scripts": {
3333
"build": "snowpack build",
34-
"build:res": "bsb -make-world",
34+
"build:res": "rescript build -with-deps",
3535
"clean": "npm run clean:res",
36-
"clean:res": "bsb -clean-world",
36+
"clean:res": "rescript clean",
3737
"start": "snowpack dev",
3838
"test": "web-test-runner \"src/**/__tests__/*.bs.js\""
3939
},
@@ -49,8 +49,8 @@
4949
"@snowpack/web-test-runner-plugin": "^0.2.2",
5050
"@testing-library/react": "^11.2.6",
5151
"@web/test-runner": "^0.12.19",
52-
"bs-platform": "^9.0.2",
5352
"chai": "^4.3.4",
53+
"rescript": "^9.1.0",
5454
"snowpack": "^3.2.2"
5555
}
5656
}

src/App.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let make = () => {
2222
</p>
2323
<p>
2424
{React.string("Page has been open for ")}
25-
<code> {React.string(Printf.sprintf("%.1f", count /. 10.))} </code>
25+
<code> {React.string(Js.Float.toFixedWithPrecision(count /. 10., ~digits=1))} </code>
2626
{React.string(" seconds")}
2727
</p>
2828
<a className="App-link" href="https://reactjs.org" target="_blank" rel="noopener noreferrer">

0 commit comments

Comments
 (0)