Skip to content

Commit d070af2

Browse files
committed
update transpile.js
1 parent 899c1a8 commit d070af2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/commands/transpile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const { log } = require("console");
1212
* @param {Object} options - CLI options (`--output`, `--silent`, etc.).
1313
*/
1414
function transpileCommand(patterns, options) {
15+
if (!Array.isArray(patterns) || typeof options !== 'object') {
16+
throw new Error("Invalid input: `patterns` should be an array and `options` should be an object.");
17+
}
18+
1519
const config = loadConfig(options.config);
1620

1721
const finalPatterns =

0 commit comments

Comments
 (0)