Open tommy-mitchell opened 7 months ago
May have missed some comments, but that's the bulk of where I'm needing clarification. The other TODOs I have are reminders to fix type issues.
Do we support a shorthand for setting flags?
const cli = meow({
importMeta: import.meta
flags: {
rainbow: 'boolean',
unicorn: 'string',
},
});
Do we support a shorthand for setting flags?
No. That's not something I want to support either.
Got it. I think this test case (and maybe another?) had confused me before and I was remembering something about it:
That test case is incorrect.
Updated to reflect changes from other PRs. Type tests are failing due to tsd
not seeing minimist-options.d.ts
.
CI is failing due to https://github.com/sindresorhus/type-fest/pull/824
I'm not sure how to fix the timeout issue, I get it sometimes locally when running npm test
but never with npx ava
.
Maybe try downgrading to ava@5
for now.
Didn't work, guess it's something on our end. Now it doesn't even say which test timed out.
Hmm, or maybe not. Maybe the problem here is tsimp
. I never had any problems with tsx
. Maybe worth trying that.
Per #233.
minimist-options
to support thearguments
option (seeminimist-options.d.ts
)minimist-options
itself--
option inflags