-
Notifications
You must be signed in to change notification settings - Fork 148
Add @babel/* to dependenciesWhitelist.txt #489
Conversation
Could you link to the DefinitelyTyped PR that needs this? |
babel are accepting PRs to add types to their own repo now, i think introducing any extra types to DT is the wrong direction to be heading in... babel/babel#8629 Basically all |
I did not yet create a PR but after this is merged I will. I am also not introducing those types. They already exist. This is required in order to remove them according to the instructions. Currently @babel/types and @babel/parser are the only packages with types that are published. I expect the others to eventually have them as well. |
can you elaborate on the need for this in order to remove them? not disagreeing but rather interested as to what the plan is here. the aim is to get every babel package to ship its own types and have a deprecation notice if anyone tries to use the DT babel types, if possible. |
I followed the procedure at https://github.com/DefinitelyTyped/DefinitelyTyped#removing-a-package to remove the types for @babel/parser and it told me that it needs to be added to this file first so that is what I did. |
If I remember correctly this was needed because I needed to add @babel/parser as a dependency to @babel/core |
ah now i understand. you are removing is it possible we could remove all edit: could be a dumb suggestion if there's a few babel packages. but if there's only a couple it may be worth it |
It looks like there's quite a few babel packages in here:
So you are indeed correct. we need to add the parser to the whitelist, remove it and update all the other packages to use it. Until there's some activity in the babel repo (they are slow to sort the PRs out it seems), we'll have to do this for each babel package by the looks of it. We can't remove all the |
@43081j Want to update this PR to include all the packages you'll need? |
@mgroenhoff is creator FYI. If he can add them, the ones we will need are:
as far as i can see. the old-old types ( we will just have to remember to remove these from the whitelist once the associated DT types are removed. |
@43081j I dont think removing @andy-ms Now that I got your attention 😄 Can you take a look at DefinitelyTyped/DefinitelyTyped#27729? |
that's a fair point. PR looks good to me too now. gives us chance to remove one at a time 👍 |
No description provided.