Skip to content

Commit f6574e4

Browse files
committed
messages
1 parent 2752abf commit f6574e4

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

jscomp/bsb/bsb_build_util.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ let rec walk_all_deps_aux (visited : string Hash_string.t) (paths : string list)
168168
"package name is expected to be %s but got %s" s str);
169169
str
170170
| Some _ | None ->
171-
Bsb_exception.errorf ~loc "package name missing in %s/bsconfig.json"
171+
Bsb_exception.errorf ~loc "package name missing in %s/rescript.json"
172172
dir
173173
in
174174
if Ext_list.mem_string paths cur_package_name then (

jscomp/bsb/bsb_config_interpret.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ let interpret_json ~(package_kind : Bsb_package_kind.t) ~(per_proj_dir : string)
352352
filename;
353353
}
354354
| None ->
355-
Bsb_exception.invalid_spec "no sources specified in bsconfig.json")
356-
| _, _, _ -> Bsb_exception.invalid_spec "bsconfig.json expect a json object {}"
355+
Bsb_exception.invalid_spec ("no sources specified in " ^ filename))
356+
| filename, _, _ -> Bsb_exception.invalid_spec (filename ^ " expect a json object {}")
357357

358358
let deps_from_bsconfig () =
359359
let cwd = Bsb_global_paths.cwd in

jscomp/bsb/bsb_exception.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ let print (fmt : Format.formatter) (x : error) =
5858
let name = Bsb_pkg_types.to_string name in
5959
if Ext_string.equal name !Bs_version.package_name then
6060
Format.fprintf fmt
61-
"File \"bsconfig.json\", line 1\n\
61+
"File \"rescript.json\", line 1\n\
6262
@{<error>Error:@} package @{<error>%s@} is not found %s\n\
6363
It's the basic, required package. If you have it installed globally,\n\
6464
Please run `npm link rescript` to make it available" name in_json
6565
else
6666
Format.fprintf fmt
67-
"File \"bsconfig.json\", line 1\n\
67+
"File \"rescript.json\", line 1\n\
6868
@{<error>Error:@} package @{<error>%s@} not found or built %s\n\
6969
- Did you install it?\n\
7070
- If you did, did you run `rescript build -with-deps`?" name in_json
@@ -76,7 +76,7 @@ let print (fmt : Format.formatter) (x : error) =
7676
https://rescript-lang.org/docs/manual/latest/build-configuration-schema"
7777
pos.pos_fname pos.pos_lnum s
7878
| Invalid_spec s ->
79-
Format.fprintf fmt "@{<error>Error: Invalid bsconfig.json %s@}" s
79+
Format.fprintf fmt "@{<error>Error: Invalid rescript.json %s@}" s
8080
| Invalid_json s ->
8181
Format.fprintf fmt
8282
"File %S, line 1\n@{<error>Error: Invalid json format@}" s

jscomp/bsb/bsb_world.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let make_world_deps cwd (config : Bsb_config_types.t option)
3030
let package_specs, jsx, uncurried, pinned_dependencies =
3131
match config with
3232
| None ->
33-
(* When this running bsb does not read bsconfig.json,
33+
(* When this running bsb does not read rescript.json,
3434
we will read such json file to know which [package-specs]
3535
it wants
3636
*)

jscomp/bsb_exe/rescript_main.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ let build_subcommand ~start argv argv_len =
148148
( "-regen",
149149
unit_set_spec force_regenerate,
150150
"*internal* \n\
151-
Always regenerate build.ninja no matter bsconfig.json is changed or \
151+
Always regenerate build.ninja no matter rescript.json is changed or \
152152
not" );
153153
("-verbose", call_spec Bsb_log.verbose, "Set the output to be verbose");
154154
|]

jscomp/build_tests/super_errors/expected/modules1.res.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
The module or file Foo can't be found.
99
- If it's a third-party dependency:
10-
- Did you list it in bsconfig.json?
10+
- Did you list it in rescript.json?
1111
- Did you run `rescript build` instead of `rescript build -with-deps`
1212
(latter builds third-parties)?
13-
- Did you include the file's directory in bsconfig.json?
13+
- Did you include the file's directory in rescript.json?

jscomp/ml/typetexp.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,10 +993,10 @@ let report_error env ppf = function
993993
Format.fprintf ppf "@[<v>\
994994
@{<info>The module or file %a can't be found.@}@,\
995995
@[<v 2>- If it's a third-party dependency:@,\
996-
- Did you list it in bsconfig.json?@,\
996+
- Did you list it in rescript.json?@,\
997997
- @[Did you run `rescript build` instead of `rescript build -with-deps`@ (latter builds third-parties)@]?\
998998
@]@,\
999-
- Did you include the file's directory in bsconfig.json?@]\
999+
- Did you include the file's directory in rescript.json?@]\
10001000
@]"
10011001
Printtyp.longident lid
10021002
end

packages/std/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The motiviation of this repo is that when ReScript users want to share their lib
44

55
It shares the same version schema with ReScript compiler.
66

7-
When you use this library, the config would be adding such things in bsconfig.json
7+
When you use this library, the config would be adding such things in rescript.json
88

99
```json
1010
"external-stdlib" : "@rescript/std"

0 commit comments

Comments
 (0)