Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5bb4552

Browse filesBrowse files
committed
split into multiple subpackages
Uses yarn for the package manager. Splits the monorepo into: - @rescript/react - @rescript/react-dom - @rescript/browser-router
1 parent c420d2d commit 5bb4552
Copy full SHA for 5bb4552

39 files changed

+1,295-306Lines changed: 1295 additions & 306 deletions
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/nodejs.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/nodejs.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
node-version: [24.x]
2020

2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v7
2323
- name: Use Node.js ${{ matrix.node-version }}
2424
uses: actions/setup-node@v6
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
- run: npm install
28-
- run: npm run build
29-
- run: npm run test
27+
- run: yarn
28+
- run: yarn build
29+
- run: yarn test
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+11-1Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@ src/legacy/*.bs.js
1818
!/src/react/*.js
1919

2020
# ReScript
21-
lib/
21+
lib/
22+
23+
# Yarn
24+
/.pnp.*
25+
/.yarn/*
26+
!/.yarn/patches
27+
!/.yarn/plugins
28+
!/.yarn/releases
29+
!/.yarn/sdks
30+
!/.yarn/versions
31+
!/.yarn/releases/**
Collapse file

‎.yarn/releases/yarn-4.12.0.cjs‎

Copy file name to clipboardExpand all lines: .yarn/releases/yarn-4.12.0.cjs
+942Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.
Collapse file

‎.yarnrc.yml‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
defaultSemverRangePrefix: ""
2+
3+
nmMode: hardlinks-global
4+
5+
nodeLinker: node-modules
6+
7+
yarnPath: .yarn/releases/yarn-4.12.0.cjs
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+2-4Lines changed: 2 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
### Development
1919

2020
```
21-
npm install
22-
23-
# Starts the ReScript compiler in watch mode
24-
npm start
21+
yarn install
22+
yarn build
2523
```
2624

2725
### Acknowledgements
Collapse file

‎package-lock.json‎

Copy file name to clipboardExpand all lines: package-lock.json
-263Lines changed: 0 additions & 263 deletions
This file was deleted.
Collapse file

‎package.json‎

Copy file name to clipboard
+9-27Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,23 @@
11
{
2-
"name": "@rescript/react",
2+
"name": "rescript-react",
33
"version": "0.15.0",
4-
"description": "React bindings for ReScript",
5-
"files": [
6-
"README.md",
7-
"CHANGELOG.md",
8-
"LICENSE",
9-
"rescript.json",
10-
"src/**/*.res",
11-
"src/**/*.resi"
4+
"private": true,
5+
"packageManager": "yarn@4.12.0",
6+
"preferUnplugged": true,
7+
"workspaces": [
8+
"packages/react",
9+
"packages/react-dom",
10+
"packages/browser-router"
1211
],
1312
"scripts": {
1413
"build": "rescript build",
15-
"start": "rescript watch",
1614
"clean": "rescript clean",
17-
"format": "rescript format",
15+
"format": "rescript format -all",
1816
"test": "echo 'tests disabled for now'"
1917
},
20-
"keywords": [
21-
"rescript",
22-
"react"
23-
],
24-
"author": "Ricky Vetter",
25-
"license": "MIT",
26-
"repository": {
27-
"type": "git",
28-
"url": "git+https://github.com/rescript-lang/rescript-react.git"
29-
},
30-
"homepage": "https://rescript-lang.org/docs/react/latest/introduction",
3118
"devDependencies": {
3219
"react": "^19.2.0",
3320
"react-dom": "^19.2.0",
3421
"rescript": "^12.0.0"
35-
},
36-
"peerDependencies": {
37-
"@rescript/runtime": ">=12.0.0",
38-
"react": ">=19.2.0",
39-
"react-dom": ">=19.2.0"
4022
}
4123
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.