invoket 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cli.ts +5 -0
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -483,6 +483,11 @@ async function main() {
|
|
|
483
483
|
// Validate and coerce arguments
|
|
484
484
|
const coercedArgs: unknown[] = [];
|
|
485
485
|
|
|
486
|
+
// If no param info (imported namespace), pass all args as strings
|
|
487
|
+
if (meta.params.length === 0 && taskArgs.length > 0) {
|
|
488
|
+
coercedArgs.push(...taskArgs);
|
|
489
|
+
}
|
|
490
|
+
|
|
486
491
|
for (let i = 0; i < meta.params.length; i++) {
|
|
487
492
|
const param = meta.params[i];
|
|
488
493
|
|