Skip to content

Commit 9344c4b

Browse files
committed
Remove usage of deprecated rescript.json flags
1 parent 2646aea commit 9344c4b

File tree

41 files changed

+55
-55
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+55
-55
lines changed

analysis/examples/example-project/rescript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "tryit",
33
"sources": "src",
4-
"bsc-flags": ["-bs-super-errors", "-open Belt"],
4+
"compiler-flags": ["-open Belt"],
55
"warnings": {
66
"number": "-32-26-27-33"
77
},
8-
"bs-dependencies": ["reason-react"],
8+
"dependencies": ["reason-react"],
99
"namespace": "my-namespace",
1010
"reanalyze": {
1111
"analysis": ["dce", "exception"]

analysis/examples/larger-project/rescript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"unsuppress": []
66
},
77
"name": "sample-typescript-app",
8-
"bsc-flags": ["-bs-super-errors -w a"],
9-
"bs-dependencies": ["@rescript/react", "@glennsl/bs-json"],
8+
"compiler-flags": ["-w a"],
9+
"dependencies": ["@rescript/react", "@glennsl/bs-json"],
1010
"sources": [
1111
{
1212
"dir": "src",

analysis/examples/workspace-project/app/rescript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "app",
3-
"bsc-flags": ["-open Common"],
4-
"bs-dependencies": ["common", "myplugin"],
3+
"compiler-flags": ["-open Common"],
4+
"dependencies": ["common", "myplugin"],
55
"sources": [
66
{
77
"dir": "src",

analysis/examples/workspace-project/rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"in-source": true
88
},
99
"suffix": ".mjs",
10-
"bs-dependencies": ["common", "myplugin", "app"]
10+
"dependencies": ["common", "myplugin", "app"]
1111
}

docs/JSXV4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For example, suppose a V3 project uses rescript-react 0.11, which requires compa
2727
"version": 3,
2828
"v3-dependencies": ["rescript-react-native", "rescript-react-navigation"]
2929
},
30-
"bsc-flags": ["-open ReactV3"]
30+
"compiler-flags": ["-open ReactV3"]
3131
```
3232

3333
Another example is a V4 project that also uses `"rescript-react-native", "rescript-react-navigation"`. Then the setting will be:

packages/playground/rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"in-source": false,
1111
"suffix": ".res.js"
1212
},
13-
"bs-dependencies": [
13+
"dependencies": [
1414
"@rescript/react"
1515
]
1616
}

packages/playground/scripts/generate_cmijs.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ exec("yarn rescript legacy");
3030
// Otherwise we can't use them for compilation within the playground.
3131
buildCmij(compilerRootDir, "compiler-builtins");
3232

33-
const packages = resConfig["bs-dependencies"];
33+
const packages = resConfig["dependencies"];
3434
for (const pkgName of packages) {
3535
buildCmij(
3636
path.join(compilerRootDir, "node_modules", pkgName),

rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name": "rescript",
3-
"bs-dependencies": ["@tests/gentype-react-example"]
3+
"dependencies": ["@tests/gentype-react-example"]
44
}

rewatch/CompilerConfigurationSpec.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ This document contains a list of all bsconfig parameters with remarks, and wheth
1313
| sources | Source | | [x] |
1414
| sources | array of Source | | [x] |
1515
| ignored-dirs | array of string | | [_] |
16-
| bs-dependencies | array of string | | [x] |
17-
| bs-dev-dependencies | array of string | | [x] |
16+
| dependencies | array of string | | [x] |
17+
| dev-dependencies | array of string | | [x] |
1818
| generators | array of Rule-Generator | | [_] |
1919
| cut-generators | boolean | | [_] |
2020
| jsx | JSX | | [x] |
2121
| gentypeconfig | Gentype | | [_] |
22-
| bsc-flags | array of string | | [x] |
22+
| compiler-flags | array of string | | [x] |
2323
| warnings | Warnings | | [x] |
2424
| ppx-flags | array of string | | [x] |
2525
| pp-flags | array of string | | [_] |

rewatch/src/config.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ pub mod tests {
655655
"sources": [ { "dir": "src/", "subdirs": true } ],
656656
"package-specs": [ { "module": "es6", "in-source": true } ],
657657
"suffix": ".mjs",
658-
"bs-dependencies": [ "@teamwalnut/app" ]
658+
"dependencies": [ "@teamwalnut/app" ]
659659
}
660660
"#;
661661

@@ -683,7 +683,7 @@ pub mod tests {
683683
"module": "esmodule",
684684
"in-source": true
685685
},
686-
"bs-dev-dependencies": ["@rescript/tools"],
686+
"dev-dependencies": ["@rescript/tools"],
687687
"warnings": {
688688
"error": "+101"
689689
}
@@ -714,7 +714,7 @@ pub mod tests {
714714
"module": "esmodule",
715715
"in-source": true
716716
},
717-
"bs-dev-dependencies": ["@rescript/tools"],
717+
"dev-dependencies": ["@rescript/tools"],
718718
"suffix": ".mjs",
719719
"warnings": {
720720
"error": "+101"
@@ -742,7 +742,7 @@ pub mod tests {
742742
"sources": [ { "dir": "src/", "subdirs": true } ],
743743
"package-specs": [ { "module": "es6", "in-source": true } ],
744744
"suffix": ".mjs",
745-
"bs-dependencies": [ "@teamwalnut/app" ],
745+
"dependencies": [ "@teamwalnut/app" ],
746746
"gentypeconfig": {
747747
"module": "esmodule",
748748
"generatedFileExtension": ".gen.tsx"
@@ -763,7 +763,7 @@ pub mod tests {
763763
"sources": [ { "dir": "src/", "subdirs": true } ],
764764
"package-specs": [ { "module": "es6", "in-source": true } ],
765765
"suffix": ".mjs",
766-
"bs-dependencies": [ "@teamwalnut/app" ],
766+
"dependencies": [ "@teamwalnut/app" ],
767767
"jsx": {
768768
"module": "Voby.JSX"
769769
}
@@ -792,7 +792,7 @@ pub mod tests {
792792
"sources": [ { "dir": "src/", "subdirs": true } ],
793793
"package-specs": [ { "module": "es6", "in-source": true } ],
794794
"suffix": ".mjs",
795-
"bs-dependencies": [ "@teamwalnut/app" ],
795+
"dependencies": [ "@teamwalnut/app" ],
796796
"jsx": { "version": 4, "preserve": true }
797797
}
798798
"#;

0 commit comments

Comments
 (0)