Skip to content

Commit 86d3dde

Browse files
committed
extends can now be a string or a list
1 parent 0cff12c commit 86d3dde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/job.ts

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export class Job {
5959

6060
// Parse extends recursively and deepExtend data.
6161
if (jobData.extends) {
62+
jobData.extends = typeof jobData.extends === "string" ? [ jobData.extends ] : jobData.extends;
6263
let i;
6364
let clonedData: any = clone(jobData);
6465
const maxDepth = 50;

0 commit comments

Comments
 (0)