Skip to content

Commit 72517c8

Browse files
authored
Merge pull request #405 from niandalu/fix-issue-404
fix(node-plop): type assertion is not working for vm array
2 parents 4523cda + fe129dc commit 72517c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node-plop/src/generator-runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function (plopfileApi, flags) {
6262
}
6363

6464
// if actions are not an array, invalid!
65-
if (!(actions instanceof Array)) {
65+
if (!Array.isArray(actions)) {
6666
throw Error(`${genObject.name} has invalid actions`);
6767
}
6868

0 commit comments

Comments
 (0)