Skip to content

Commit ffc07ba

Browse files
committed
tweak names
1 parent b6418cc commit ffc07ba

File tree

8 files changed

+10
-7
lines changed

8 files changed

+10
-7
lines changed

jscomp/bsb/bsb_config_parse.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ let extract_package_name_and_namespace
9292
(kinda check npm upgrade)
9393
9494
Note if the setup is correct:
95-
the running compiler and node_modules/bs-platform
95+
the running compiler and node_modules/rescript
9696
should be the same version,
9797
The exact check is that the running compiler should have a
9898
compatible runtime version installed, the location of the

jscomp/bsb/bsb_config_types.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type t =
6363
pinned_dependencies : Set_string.t;
6464
built_in_dependency : bool;
6565
warning : Bsb_warning.t;
66-
(*TODO: maybe we should always resolve bs-platform
66+
(*TODO: maybe we should always resolve rescript
6767
so that we can calculate correct relative path in
6868
[.merlin]
6969
*)

jscomp/bsb/bsb_exception.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ let print (fmt : Format.formatter) (x : error) =
6262
"File \"bsconfig.json\", line 1\n\
6363
@{<error>Error:@} package @{<error>%s@} is not found %s\n\
6464
It's the basic, required package. If you have it installed globally,\n\
65-
Please run `npm link bs-platform` to make it available" name in_json
65+
Please run `npm link rescript` to make it available" name in_json
6666
else
6767
Format.fprintf fmt
6868
"File \"bsconfig.json\", line 1\n\

jscomp/common/bs_version.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
let version = "9.1.0"
2626
let header =
2727
"// Generated by ReScript, PLEASE EDIT WITH CARE"
28-
let package_name = ref "bs-platform"
28+
let package_name = ref "rescript"

jscomp/core/js_name_of_module_id.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ let get_runtime_module_path
7777
current_package_info
7878
~package_dir:(Lazy.force Ext_path.package_dir)
7979
module_system )
80-
(*Invariant: the package path to bs-platform, it is used to
80+
(*Invariant: the package path to rescript, it is used to
8181
calculate relative js path
8282
*)
8383
(match !Js_config.customize_runtime with

jscomp/ext/ext_obj.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ let rec dump r =
102102
opaque (Printf.sprintf "unknown: tag %d size %d" t s)
103103

104104
let dump v = dump (Obj.repr v)
105-
105+
let dump_endline ?(__LOC__="") v =
106+
print_endline __LOC__;
107+
print_endline (dump v )
106108
let pp_any fmt v =
107109
Format.fprintf fmt "@[%s@]"
108110
(dump v )

jscomp/ext/ext_obj.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
* along with this program; if not, write to the Free Software
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424
val dump : 'a -> string
25+
val dump_endline : ?__LOC__:string -> 'a -> unit
2526
val pp_any : Format.formatter -> 'a -> unit
2627
val bt : unit -> unit

jscomp/install-bsb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# dev small utils
44
# hot replace global bsb.exe for quick testing
55
npm_prefix=`npm prefix -g`
6-
cp ../lib/bsb ../lib/bsb.exe ../lib/bsb_helper.exe $npm_prefix/lib/node_modules/bs-platform/lib/
6+
cp ../lib/bsb ../lib/bsb.exe ../lib/bsb_helper.exe $npm_prefix/lib/node_modules/rescript/lib/

0 commit comments

Comments
 (0)