We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385dd8d commit 32e3a84Copy full SHA for 32e3a84
1 file changed
bin/concurrently.js
@@ -180,12 +180,17 @@ const args = yargs
180
const prefixColors = args.prefixColors.split(',');
181
const names = (args.names || '').split(args.nameSeparator);
182
183
+const _ObjectFromEntries = (l) => {
184
+ const d = {};
185
+ l.forEach(el=>d[el[0]] = el[1]);
186
+ return d;
187
+};
188
const _define = Array.isArray(args.define) ? args.define : [args.define];
189
const definition = Object.assign(
190
{},
191
{ prepend: args.prepend, append: args.append },
192
// desc: convert ["a=1","b=2"] into {"a":"1","b":"2"}
- Object.fromEntries(
193
+ _ObjectFromEntries(
194
_define
195
.map(el=>el.split('='))
196
.map(x=>[x[0],x.slice(1).join('=')])
0 commit comments