Skip to content

Commit 1aebb34

Browse files
authored
Remove dev-time scripts from npm package; fix install-time build (#5691)
* Remove scripts/LICENSE.ml * Remove dev-time scripts from npm package; fix install-time build
1 parent 7d5e58c commit 1aebb34

File tree

3 files changed

+12
-57
lines changed

3 files changed

+12
-57
lines changed

packages/artifacts.txt

+1-23
Original file line numberDiff line numberDiff line change
@@ -949,39 +949,17 @@ linux/rescript.exe
949949
ninja.COPYING
950950
package.json
951951
rescript
952-
scripts/LICENSE.ml
953952
scripts/bin_path.js
954-
scripts/buckle_lto.js
955-
scripts/build_sorted.ml
953+
scripts/buildNinjaBinary.js
956954
scripts/buildocaml.js
957-
scripts/caml_oo_curry_gen.ml
958-
scripts/checkUnused.js
959-
scripts/ciTest.js
960955
scripts/config.js
961-
scripts/cover.sh
962-
scripts/curry_gen.ml
963-
scripts/dbg
964-
scripts/dedupe.js
965956
scripts/install.js
966957
scripts/installUtils.js
967-
scripts/js_internal_gen.js
968-
scripts/jsconfig.json
969-
scripts/littlecase.js
970-
scripts/ninja.js
971958
scripts/ninjaFactory.js
972-
scripts/pack.js
973-
scripts/prebuilt.js
974-
scripts/release.js
975-
scripts/repl.js
976959
scripts/rescript_arg.js
977960
scripts/rescript_convert.js
978961
scripts/rescript_dump.js
979962
scripts/rescript_format.js
980-
scripts/shake.js
981-
scripts/tasks.js
982-
scripts/test.sh
983-
scripts/tmp.js
984-
scripts/validate.js
985963
vendor/ninja.tar.gz
986964
vendor/ocaml.tar.gz
987965
win32/bsb_helper.exe

scripts/.npmignore

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
moveArtifacts.sh
2-
deps.js
3-
format.js
4-
local_br_clean.sh
5-
setVersion.js
6-
makeArtifactList.js
7-
buildNinjaBinary.js
1+
# Ignore all scripts used in dev time only,
2+
# keep only those actually needed in the npm package.
3+
*
4+
!bin_path.js
5+
!buildNinjaBinary.js
6+
!buildocaml.js
7+
!config.js
8+
!install.js
9+
!installUtils.js
10+
!ninjaFactory.js
11+
!rescript_*.js

scripts/LICENSE.ml

-27
This file was deleted.

0 commit comments

Comments
 (0)