Skip to content

Commit 06db33b

Browse files
committed
fix installation error
1 parent 59220dc commit 06db33b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jscomp/**/*
2222
!jscomp/stubs/ext_basic_hash_stubs.c
2323
ocaml/
2424
lib/4.06.1/unstable
25+
lib/4.06.1/*.d
26+
lib/4.06.1/bsdep*
27+
lib/4.06.1/bspp.ml*
2528
lib/4.06.1/*.cm*
2629
.circleci/
2730
native/

scripts/prebuilt.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ function install() {
4949
var others_dir = path.join(jscomp_dir, "others");
5050
var ocaml_dir = path.join(lib_dir, "ocaml");
5151
var stdlib_dir = path.join(jscomp_dir, "stdlib-406");
52-
52+
if(!fs.existsSync(ocaml_dir)){
53+
fs.mkdirSync(ocaml_dir)
54+
}
5355
// sync up with cmij_main.ml
5456
installDirBy(runtime_dir, ocaml_dir, function(file) {
5557
var y = path.parse(file);

0 commit comments

Comments
 (0)