We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 899c1a8 commit d070af2Copy full SHA for d070af2
src/commands/transpile.js
@@ -12,6 +12,10 @@ const { log } = require("console");
12
* @param {Object} options - CLI options (`--output`, `--silent`, etc.).
13
*/
14
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
+
19
const config = loadConfig(options.config);
20
21
const finalPatterns =
0 commit comments