Skip to content

Commit a5cb1f8

Browse files
authored
chore(compiler): Build JS version with 2 jobs on Windows (#1922)
1 parent 391ac24 commit a5cb1f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/esy.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"copy:exe": "cp #{$GRAINC_BIN_PATH} #{$GRAINDOC_BIN_PATH} #{$GRAINFORMAT_BIN_PATH} #{$GRAINLSP_BIN_PATH} #{$CLI_BIN_DIR}",
2626
"copy:js": "cp #{$GRAINC_JS_PATH} #{$GRAINDOC_JS_PATH} #{$GRAINFORMAT_JS_PATH} #{$GRAINLSP_JS_PATH} #{$CLI_BIN_DIR}",
2727
"clean": "rm -rf #{self.root}/_esy",
28+
"build:js": "esy b dune build @js --no-buffer #{os == 'windows' ? '-j 2' : ''}",
2829
"test": "#{$TEST_EXEC_PATH}",
2930
"test:js": "node #{$TEST_JS_PATH}",
3031
"format": "dune build @fmt --auto-promote",

compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"prebuild": "npm run clean --workspace=@grain/cli",
2020
"build": "esy",
2121
"postbuild": "esy copy:exe",
22-
"build:js": "esy b dune build @js --no-buffer",
22+
"build:js": "esy build:js",
2323
"postbuild:js": "esy copy:js",
2424
"pretest": "npm run build",
2525
"test": "esy test",

0 commit comments

Comments
 (0)