(modulePath, property)
| 58 | }) |
| 59 | |
| 60 | const commandHandlerWithProperty = (modulePath, property) => |
| 61 | errorHandler(async (...args) => { |
| 62 | const module = await dynamicImport(modulePath) |
| 63 | return module[property](...args) |
| 64 | }) |
| 65 | |
| 66 | if (process.versions.node && process.versions.node.split('.') && process.versions.node.split('.')[0] < 12) { |
| 67 | error('NodeJS >= 12 is required to run.') |
no test coverage detected