There was an error while loading. Please reload this page.
1 parent a964ff7 commit 2e3c239Copy full SHA for 2e3c239
packages/react-scripts/scripts/init.js
@@ -130,6 +130,14 @@ module.exports = function(
130
}
131
132
133
+ // install extra dependencies
134
+ args = ['add', '@arcblock/ocap-js', 'babel-polyfill'];
135
+ const proc = spawn.sync(command, args, { stdio: 'inherit' });
136
+ if (proc.status !== 0) {
137
+ console.error(`\`${command} ${args.join(' ')}\` failed`);
138
+ return;
139
+ }
140
+
141
// Display the most elegant way to cd.
142
// This needs to handle an undefined originalDirectory for
143
// backward compatibility with old global-cli's.
0 commit comments