File tree 2 files changed +11
-2
lines changed 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,13 @@ def run(self):
119
119
npm = shutil .which ("npm" ) # this is required on windows
120
120
if npm is None :
121
121
raise RuntimeError ("NPM is not installed." )
122
+
123
+ # Required on when using NPM >3
124
+ log .info (f"> Installing rollup, react, and react-dom" )
125
+ subprocess .run (f"{ npm } install rollup" .split (), cwd = js_dir , check = True )
126
+ subprocess .run (f"{ npm } install react" .split (), cwd = js_dir , check = True )
127
+ subprocess .run (f"{ npm } install react-dom" .split (), cwd = js_dir , check = True )
128
+
122
129
for args in (f"{ npm } install" , f"{ npm } run build" ):
123
130
args_list = args .split ()
124
131
log .info (f"> { list2cmdline (args_list )} " )
Original file line number Diff line number Diff line change 12
12
},
13
13
"devDependencies" : {
14
14
"prettier" : " ^2.2.1" ,
15
- "rollup" : " ^2.35.1 " ,
15
+ "rollup" : " ^2.56.3 " ,
16
16
"rollup-plugin-commonjs" : " ^10.1.0" ,
17
17
"rollup-plugin-node-resolve" : " ^5.2.0" ,
18
18
"rollup-plugin-replace" : " ^2.2.0"
19
19
},
20
20
"dependencies" : {
21
- "idom-client-react" : " ^0.33.0"
21
+ "idom-client-react" : " ^0.33.0" ,
22
+ "react" : " ^17.0.2" ,
23
+ "react-dom" : " ^17.0.2"
22
24
}
23
25
}
You can’t perform that action at this time.
0 commit comments