File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
packages/playground-bundling/scripts Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ const RESCRIPT_COMPILER_ROOT_DIR = path.join(
27
27
".." ,
28
28
".." ,
29
29
) ;
30
+
31
+ const NODE_MODULES_DIR = path . join ( RESCRIPT_COMPILER_ROOT_DIR , "node_modules" ) ;
32
+
30
33
const PLAYGROUND_DIR = path . join ( RESCRIPT_COMPILER_ROOT_DIR , "playground" ) ;
31
34
32
35
// The playground-bundling root dir
@@ -63,9 +66,7 @@ const packages = resConfig["bs-dependencies"];
63
66
// Otherwise we can't use them for compilation within the playground.
64
67
function buildCompilerCmij ( ) {
65
68
const rescriptLibOcamlFolder = path . join (
66
- PROJECT_ROOT_DIR ,
67
- "node_modules" ,
68
- "rescript" ,
69
+ RESCRIPT_COMPILER_ROOT_DIR ,
69
70
"lib" ,
70
71
"ocaml" ,
71
72
) ;
@@ -86,15 +87,13 @@ function buildCompilerCmij() {
86
87
function buildThirdPartyCmijs ( ) {
87
88
for ( const pkg of packages ) {
88
89
const libOcamlFolder = path . join (
89
- PROJECT_ROOT_DIR ,
90
- "node_modules" ,
90
+ NODE_MODULES_DIR ,
91
91
pkg ,
92
92
"lib" ,
93
93
"ocaml" ,
94
94
) ;
95
95
const libEs6Folder = path . join (
96
- PROJECT_ROOT_DIR ,
97
- "node_modules" ,
96
+ NODE_MODULES_DIR ,
98
97
pkg ,
99
98
"lib" ,
100
99
"es6" ,
You can’t perform that action at this time.
0 commit comments