-
Notifications
You must be signed in to change notification settings - Fork 904
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
chore: migrated link command to TS #696
chore: migrated link command to TS #696
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I think this is one of the last of the commands. Just a few suggestions. 👐
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I am getting a good number of errors when adding the type package for inquirer.
A bit confused with this one. Where do I get those ios and android type !
Will rebase it and try it |
Yes, I think it's missing the import {prompt, QuestionCollection, Answers} from 'inquirer';
export default (questions: QuestionCollection) =>
new Promise<Answers>((resolve, reject) => {
if (!questions) {
resolve({});
return;
}
prompt(questions).then(resolve, reject);
}); And to fix the Module '"readline"' has no exported member 'Interface'.
1 import { Interface as ReadlineInterface, Key } from "readline"; Just run |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
That's weird, I reproduced it locally and it worked well.. Try to run |
from |
Can you push you branch to so we can take a look? You should have As for the
|
@FLGMwt @assuncaocharles I updated my fork, https://github.com/anikethsaha/cli/tree/migration/typescript-link-command |
I manually copy pasted it......IDK why the rebasing didnt work ! |
I played around and I don't understand why, but adding an explicit version of @types/node made it work. I think it's something with how typescript resolved which type package to use for deps? It's probably the transitive @types/node@8 throwing things off but I have no idea. Give this a shot:
Diff should look like: |
This comment has been minimized.
This comment has been minimized.
We use |
I guess typescript is not able to resolve older versions.! |
Ah, that makes sense, sorry for the confusion. Seems like it used to be called Latest types have Unsure what to do in |
Should I downgrade the version then ? |
To unblock ourselves I'm fine with not typing inquirer. We can do this later |
* chore: convert init command to TS * Removing @types/inquirer package according to PR #696 * nits
Yeah this seems fine. I will remove typing for inquirer 👍 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
552cab2
to
f82c1cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Summary:
#683
Converted
link
command toTypescript
Also added
preulink
,postunlink
to thecli-types
in the config hooksTest Plan:
yarn test
yarn lint