Skip to content

Commit 5efa8d1

Browse files
committed
chore: dependencies setup
* use yarn berry * add dev-deps @rescript/react * reconfigure bsconfig.json
1 parent a948ad1 commit 5efa8d1

File tree

6 files changed

+115
-8
lines changed

6 files changed

+115
-8
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,11 @@ temp/
156156
### Reasonml ###
157157
/lib
158158

159+
.DS_Store
160+
.yarn/*
161+
!.yarn/patches
162+
!.yarn/releases
163+
!.yarn/plugins
164+
!.yarn/sdks
165+
!.yarn/versions
166+
.pnp.*

.yarn/releases/yarn-berry.cjs

Lines changed: 55 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
yarnPath: ".yarn/releases/yarn-berry.cjs"
2+
nodeLinker: "node-modules"

bsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
{ "dir": "src", "subdirs": true },
1111
{ "dir": "examples", "subdirs": true, "type": "dev" }
1212
],
13+
"bs-dependencies": ["@rescript/react"],
1314
"package-specs": {
1415
"module": "es6",
1516
"in-source": true

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rescript-chakra",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"description": "ReScript binding for React Chakra-UI.",
55
"author": "ri7nz <[email protected]>",
66
"license": "MIT",
@@ -10,6 +10,8 @@
1010
},
1111
"bugs": "https://github.com/ri7nz/rescript-chakra/issues",
1212
"scripts": {
13+
"predocs": "yarn clean",
14+
"docs": "yarn build && bsdoc build rescript-chakra",
1315
"start": "rescript build -w",
1416
"build": "rescript build -with-deps",
1517
"clean": "rescript clean"
@@ -18,6 +20,12 @@
1820
"access": "public"
1921
},
2022
"devDependencies": {
21-
"rescript": "9.1.1"
23+
"@rescript/react": "0.10.3",
24+
"rescript": "9.1.3"
25+
},
26+
"peerDependencies": {
27+
"@rescript/react": "0.10.3",
28+
"react": ">=16.8.1",
29+
"react-dom": ">=16.8.1"
2230
}
2331
}

yarn.lock

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,41 @@
1-
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2-
# yarn lockfile v1
1+
# This file is generated by running "yarn install" inside your project.
2+
# Manual changes might be lost - proceed with caution!
33

4+
__metadata:
5+
version: 4
6+
cacheKey: 7
47

5-
6-
version "9.1.1"
7-
resolved "https://registry.yarnpkg.com/rescript/-/rescript-9.1.1.tgz#de2eb5470a463d7eea493b59537d49bafa6bc5e9"
8-
integrity sha512-c+zR5aZ5mXDpAx6oyS61t4sUPiq2VXgHigilYSMazDLp1uUGbf2JvgbSfRJFaKAjfsTKcohJyH0vtdihhdZmMA==
8+
"@rescript/react@npm:0.10.3":
9+
version: 0.10.3
10+
resolution: "@rescript/react@npm:0.10.3"
11+
peerDependencies:
12+
react: ">=16.8.1"
13+
react-dom: ">=16.8.1"
14+
checksum: 8b3ab98ed0b9122b878a4d3bf01ac2657059ad89642204948057bd822b0ff01c4631e113d57e9bf75b01fbe63a2f8dec149121643c9c3a47d9532d853fd07835
15+
languageName: node
16+
linkType: hard
17+
18+
"rescript-chakra@workspace:.":
19+
version: 0.0.0-use.local
20+
resolution: "rescript-chakra@workspace:."
21+
dependencies:
22+
"@rescript/react": 0.10.3
23+
rescript: 9.1.3
24+
peerDependencies:
25+
"@rescript/react": 0.10.3
26+
react: ">=16.8.1"
27+
react-dom: ">=16.8.1"
28+
languageName: unknown
29+
linkType: soft
30+
31+
"rescript@npm:9.1.3":
32+
version: 9.1.3
33+
resolution: "rescript@npm:9.1.3"
34+
bin:
35+
bsc: bsc
36+
bsrefmt: bsrefmt
37+
bstracing: lib/bstracing
38+
rescript: rescript
39+
checksum: 2342e3aa65acf792c55a785ad214bc57eb69f584c79f1c2ab9c8bca41ee98d893ec48355907725b36305d69a6a2d74aad3f2ce7ff4719dbb8edeb4dce2b49c52
40+
languageName: node
41+
linkType: hard

0 commit comments

Comments
 (0)