Skip to content

Commit d5b8df0

Browse files
committed
fix: add root rescript monorepo config
1 parent 4222f00 commit d5b8df0

3 files changed

Lines changed: 17 additions & 12 deletions

File tree

apps/docs/rescript.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"name": "@rescript-lang/docs",
33
"namespace": false,
4-
"jsx": {
5-
"preserve": true,
6-
"version": 4
7-
},
84
"dependencies": ["@rescript/react", "@rescript/webapi"],
95
"compiler-flags": ["-open WebAPI.Global"],
106
"sources": [
@@ -35,14 +31,9 @@
3531
"subdirs": true
3632
}
3733
],
38-
"package-specs": {
39-
"module": "esmodule",
40-
"in-source": true
41-
},
4234
"warnings": {
4335
"error": "+8"
4436
},
45-
"suffix": ".jsx",
4637
"gentypeconfig": {
4738
"language": "untyped",
4839
"shims": [],

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"scripts": {
1313
"build:scripts": "yarn workspace @rescript-lang/docs build:scripts",
1414
"build:generate-llms": "yarn workspace @rescript-lang/docs build:generate-llms",
15-
"build:res": "yarn workspace @rescript-lang/docs build:res",
15+
"build:res": "rescript build --warn-error +3+8+11+12+26+27+31+32+33+34+35+39+44+45+110",
1616
"build:sync-bundles": "yarn workspace @rescript-lang/docs build:sync-bundles",
1717
"build:update-index": "yarn workspace @rescript-lang/docs build:update-index",
1818
"build:vite": "yarn workspace @rescript-lang/docs build:vite",
1919
"build": "yarn workspace @rescript-lang/docs build",
2020
"ci:format": "oxfmt --check",
2121
"ci:test": "yarn workspace @rescript-lang/docs ci:test",
22-
"clean:res": "yarn workspace @rescript-lang/docs clean:res",
22+
"clean:res": "rescript clean",
2323
"convert-images": "yarn workspace @rescript-lang/docs convert-images",
24-
"dev:res": "yarn workspace @rescript-lang/docs dev:res",
24+
"dev:res": "rescript watch",
2525
"dev:vite": "yarn workspace @rescript-lang/docs dev:vite",
2626
"dev:wrangler": "yarn workspace @rescript-lang/docs dev:wrangler",
2727
"dev": "yarn workspace @rescript-lang/docs dev",

rescript.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "rescript-lang.org-monorepo",
3+
"dependencies": ["@rescript-lang/docs"],
4+
"sources": [],
5+
"jsx": {
6+
"preserve": true,
7+
"version": 4
8+
},
9+
"package-specs": {
10+
"module": "esmodule",
11+
"in-source": true
12+
},
13+
"suffix": ".jsx"
14+
}

0 commit comments

Comments
 (0)