Skip to content

Commit

Permalink
Merge pull request #405 from niandalu/fix-issue-404
Browse files Browse the repository at this point in the history
fix(node-plop): type assertion is not working for vm array
  • Loading branch information
crutchcorn authored Dec 22, 2023
2 parents 4523cda + fe129dc commit 72517c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node-plop/src/generator-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function (plopfileApi, flags) {
}

// if actions are not an array, invalid!
if (!(actions instanceof Array)) {
if (!Array.isArray(actions)) {
throw Error(`${genObject.name} has invalid actions`);
}

Expand Down

0 comments on commit 72517c8

Please sign in to comment.