Skip to content

Commit b1bda7a

Browse files
authored
Rename folder "jscomp" to "compiler" (#7086)
* Rename folder "jscomp" to "compiler" * Adapt to rename * CHANGELOG
1 parent 7372be9 commit b1bda7a

File tree

2,621 files changed

+26
-53
lines changed

Some content is hidden

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

2,621 files changed

+26
-53
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
- name: Checkout
132132
uses: actions/checkout@v4
133133
with:
134-
fetch-depth: 2 # to be able to check for changes in subfolder jscomp/syntax later
134+
fetch-depth: 2 # to be able to check for changes in subfolder compiler/syntax later
135135

136136
- name: Use Node.js
137137
uses: actions/setup-node@v4
@@ -301,7 +301,7 @@ jobs:
301301
id: syntax-diff
302302
shell: bash
303303
run: |
304-
if git diff --name-only --exit-code HEAD^ HEAD -- jscomp/syntax; then
304+
if git diff --name-only --exit-code HEAD^ HEAD -- compiler/syntax; then
305305
echo "syntax_status=unchanged" >> $GITHUB_ENV
306306
else
307307
echo "syntax_status=changed" >> $GITHUB_ENV
@@ -337,7 +337,7 @@ jobs:
337337
run: |
338338
opam exec -- node packages/playground-bundling/scripts/generate_cmijs.js
339339
opam exec -- dune build --profile browser
340-
cp ./_build/default/jscomp/jsoo/jsoo_playground_main.bc.js playground/compiler.js
340+
cp ./_build/default/compiler/jsoo/jsoo_playground_main.bc.js playground/compiler.js
341341
342342
- name: Test playground compiler
343343
if: matrix.build_playground

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ tests/build_tests/*/lib/
5858
*.jsoo.js
5959
*.so
6060
tmp/
61-
jscomp/.lsp
6261
tracing*.json
6362
.nyc_output
6463
.vscode/launch.json

CHANGELOG.md

+1

CONTRIBUTING.md

+4-4

CREDITS.md

+6-13

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bench:
1313
$(DUNE_BIN_DIR)/syntax_benchmarks
1414

1515
dce:
16-
reanalyze.exe -dce-cmt _build/default/jscomp
16+
reanalyze.exe -dce-cmt _build/default/compiler
1717

1818
rewatch:
1919
cargo build --manifest-path rewatch/Cargo.toml
@@ -48,7 +48,7 @@ test-gentype:
4848
test-all: test test-gentype
4949

5050
reanalyze:
51-
reanalyze.exe -set-exit-code -all-cmt _build/default/jscomp -suppress jscomp/syntax/testrunner -exclude-paths jscomp/outcome_printer,jscomp/ounit_tests,jscomp/ml,jscomp/js_parser,jscomp/frontend,jscomp/ext,jscomp/depends,jscomp/core,jscomp/common,jscomp/cmij,jscomp/bsb_helper,jscomp/bsb
51+
reanalyze.exe -set-exit-code -all-cmt _build/default/compiler -suppress compiler/syntax/testrunner -exclude-paths compiler/outcome_printer,compiler/ounit_tests,compiler/ml,compiler/js_parser,compiler/frontend,compiler/ext,compiler/depends,compiler/core,compiler/common,compiler/cmij,compiler/bsb_helper,compiler/bsb
5252

5353
lib: build node_modules/.bin/semver
5454
./scripts/buildRuntime.sh
@@ -60,7 +60,7 @@ artifacts: lib
6060
# Builds the core playground bundle (without the relevant cmijs files for the runtime)
6161
playground:
6262
dune build --profile browser
63-
cp ./_build/default/jscomp/jsoo/jsoo_playground_main.bc.js playground/compiler.js
63+
cp ./_build/default/compiler/jsoo/jsoo_playground_main.bc.js playground/compiler.js
6464

6565
# Creates all the relevant core and third party cmij files to side-load together with the playground bundle
6666
playground-cmijs: artifacts

README.md

+1-1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

jscomp/bsb/bsb_build_util.mli compiler/bsb/bsb_build_util.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ val include_dirs_by : 'a list -> ('a -> string) -> string
5656

5757
val mkp : string -> unit
5858

59-
(* The path of [bsc] and [bsdep] is normalized so that the invokation of [./jscomp/bin/bsb.exe]
59+
(* The path of [bsc] and [bsdep] is normalized so that the invokation of [./compiler/bin/bsb.exe]
6060
and [bsb.exe] (combined with a dirty bsconfig.json) will not trigger unnecessary rebuild.
6161
6262
The location of [bsc] and [bsdep] is configured by the combination of [Sys.executable_name]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

jscomp/bsb/dune compiler/bsb/dune

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

jscomp/bsb_helper/bsb_helper_depfile_gen.ml compiler/bsb_helper/bsb_helper_depfile_gen.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ let oc_cmi buf namespace source =
107107
it can be errored out earlier
108108
109109
#5368: It turns out there are many false positives on detecting self-cycles (see: `tests/build_tests/zerocycle`)
110-
To properly solve this, we would need to `jscomp/ml/depend.ml` because
110+
To properly solve this, we would need to `compiler/ml/depend.ml` because
111111
cmi and cmj is broken in the first place (same problem as in ocaml/ocaml#4618).
112112
So we will just ignore the self-cycles. Even if there is indeed a self-cycle, it should fail to compile anyway.
113113
*)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

jscomp/bsc/dune compiler/bsc/dune

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)