Skip to content

Commit 6524d08

Browse files
authored
fix: build with rescript and add rescript in dependence (#25)
1 parent d4f62b0 commit 6524d08

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

template/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@
88
"start": "react-native start",
99
"test": "jest",
1010
"lint": "eslint .",
11-
"res:clean": "bsb -clean-world",
12-
"res:watch": "bsb -clean-world -make-world -w",
13-
"res:build": "bsb -clean-world -make-world"
11+
"res:clean": "rescript clean",
12+
"res:watch": "rescript build -w ",
13+
"res:build": "rescript"
1414
},
1515
"dependencies": {
16+
"@rescript/react": "^0.10.0",
1617
"react": "17.0.1",
1718
"react-native": "0.64.0",
18-
"@rescript/react": "^0.10.0",
19+
"rescript": "^10.0.1",
1920
"rescript-react-native": "^0.64.3"
2021
},
2122
"devDependencies": {
22-
"bs-platform": "^9.0.0",
2323
"@babel/core": "^7.12.9",
2424
"@babel/runtime": "^7.12.5",
2525
"@react-native-community/eslint-config": "^2.0.0",
2626
"babel-jest": "^26.6.3",
27+
"bs-platform": "^9.0.0",
2728
"eslint": "7.14.0",
2829
"jest": "^26.6.3",
2930
"metro-react-native-babel-preset": "^0.64.0",

template/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5468,6 +5468,11 @@ rescript-react-native@^0.64.3:
54685468
resolved "https://registry.yarnpkg.com/rescript-react-native/-/rescript-react-native-0.64.3.tgz#8fd11a2681cfdd65c02f0ff620186e5adf0c6854"
54695469
integrity sha512-PjGDkV3RYiCTk4hCZyaKtZJV69By0AmJuzWyuHZONdeCB0q3DwjVJtA73gu6+jBrdl0OWon6UdXaVRXhhR47cQ==
54705470

5471+
rescript@^10.0.1:
5472+
version "10.0.1"
5473+
resolved "https://registry.yarnpkg.com/rescript/-/rescript-10.0.1.tgz#5b2da8a8bcfb994bed1eb24820bf10cfb9d8c440"
5474+
integrity sha512-XwO1GPDtoEU4H03xQE5bp0/qtSVR6YLaJRPxWKrfFgKc+LI36ODOCie7o9UJfgzQdoMYkkZyiTGZ4N9OQEaiUw==
5475+
54715476
resolve-cwd@^3.0.0:
54725477
version "3.0.0"
54735478
resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d"

0 commit comments

Comments
 (0)