New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib cleanup: fix exported Helper object #16
base: dev
Are you sure you want to change the base?
Conversation
I have one big question about this project. I see you have |
The bin script just imports the lib file, as a CommonJS module, and old Node.js versions are not supported, so no build should be needed here. This project is not meant to be run in a browser. Does this answer your question? |
Ah, so it's not getting generated. Just wondering because there's a type error in it, but it wouldn't make sense to fix it if its being generated during a build. |
OK, a type problem I'm seeing. In // Here commander is a string, so you can't attach 'unknown' to it as a property.
commander.unknown = commander.parseOptions(process.argv).unknown; So in options = helper.getOptions(),
commandArgs = options.unknown.concat(helper.resolveTSFiles()), I get a type error because property |
That does not sound right to me. |
Hi @rbiggs just a heads up that I may switch to a simpler solution for doing checkjs with globs, with help from the globby package. I will keep you posted. I will still maintain this package at least for a little while. I would hate to see you waste time on something that I may not maintain forever if we can avoid it. |
By the way, I tried doing type coercion to force options from |
I will take a look at it later this week. FYI I published https://github.com/brodybits/check-js-types which uses meow for the CLI and globby@7 to resolve glob patterns. Should be much simpler than the implementation in this project. |
This would very likely affect where we use the declared Helper object type proposed in PR #14.
/cc @rbiggs - I would appreciate some feedback on this proposal.
These changes would be moved out of PR #9.