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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "invoket",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "TypeScript task runner for Bun - uses type annotations to parse CLI arguments",
6
6
  "bin": {
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