-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
@types packages should be in devDependencies #45
Comments
/cc @Rokt33r |
@damonmaria @ChristianMurphy We've discussed this issue in here. I also agree with @damonmaria 's opinion. So I think the best solution is:
|
The actual base issue I'm having is that @types/node, @types/react-native and @types/styled-components in some combination in different versions declare 'base things' (like Sorry, I can't speak to what |
I think dedupe might help. https://yarnpkg.com/lang/en/docs/cli/dedupe/ But, it seems you need to install @types/node when using cra with typescript. https://facebook.github.io/create-react-app/docs/adding-typescript |
Yes, I've seen the CRA recommendation for installing I always switch |
That's NOT crazy. React is designed to be isomorphic for ssr. Using And unified is also needing it because it accepts Buffer. |
Could you elaborate on how that would affect users using unified deep down in, say, CRA? |
Hi, I agree with the idea to move |
@Rokt33r Do you have any thoughts on #45 (comment)? |
@wooorm Thanks! I am looking forward to the next release! 😄 |
Coming soon to a package registry near you! |
Curious why there needs to be I ask since the inclusion of the types in |
cross posting this: syntax-tree/unist-util-is#14 |
Continueing the discussion from rehypejs/rehype-document#9 (review): I believe the only package causing issues is In postcss it’s solved by not using https://github.com/postcss/postcss/blob/master/lib/postcss.d.ts#L24-L26 This allows to somewhat loosely depend on |
@osdiab you may be running an older version of Unified, unified doesn't depend on |
@remcohaszing Thanks for the idea, that approach is definitely worth exploring, opened vfile/vfile#54 with a version of this idea. |
@ChristianMurphy that is likely to be the case as my comment was from a year ago 😂 i don't think we're experiencing this issue now anymore but I'll double check it. |
Subject of the issue
This package includes
@types/unist
and@types/vfile
as dependenciesYour environment
react-scripts@2.1.6
(from Create React App) includes unifiedSteps to reproduce
yarn add unified
yarn why @types/node
Expected behaviour
No
@types
packages should be installed from adding unified.Actual behaviour
Adding unified adds
@types/unist
,@types/vfile
,@types/node
and other packages into node_modules.The text was updated successfully, but these errors were encountered: