Skip to content

Commit 2e3c239

Browse files
committed
fix external dependency
1 parent a964ff7 commit 2e3c239

File tree

1 file changed

+8
-0
lines changed
  • packages/react-scripts/scripts

1 file changed

+8
-0
lines changed

packages/react-scripts/scripts/init.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ module.exports = function(
130130
}
131131
}
132132

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+
133141
// Display the most elegant way to cd.
134142
// This needs to handle an undefined originalDirectory for
135143
// backward compatibility with old global-cli's.

0 commit comments

Comments
 (0)