Show library typing/runtime dependencies differently in dependency graph
See original GitHub issueExpected Behavior
When importing just the type information from a library using Typescript >3.8:
import type { MyInterface } from '@project/my-models';
The affected:dep-graph
should indicate it is a type dependency rather than a runtime dependency, or optionally filter type dependencies.
Current Behavior
Libraries which are depended on for just type information are shown with the same dependency arrow-line as those libraries which provide runtime services.
Steps to Reproduce
- Create an app
- Create a library
- Create a interface model in the library and export it.
- Import the interface via
import type
into the app. - Run
affected:dep-graph
command. - Library is shown as a hard dependency for the app.
Context
@nrwl/angular : 9.1.4
@nrwl/cli : 9.1.4
@nrwl/cypress : 9.1.4
@nrwl/eslint-plugin-nx : Not Found
@nrwl/express : Not Found
@nrwl/jest : 9.1.4
@nrwl/linter : 9.1.4
@nrwl/nest : 9.1.4
@nrwl/next : Not Found
@nrwl/node : 9.1.4
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 9.1.4
@nrwl/web : 9.1.4
@nrwl/workspace : 9.1.4
typescript : 3.8.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:15 (10 by maintainers)
Top Results From Across the Web
Identifying application runtime dependencies
A toolkit for identifying the runtime libraries and associated data that applications require in order to run correctly inside containers.
Read more >Dependencies and .NET libraries - Microsoft Learn
A diamond dependency now exists in the app's dependency graph. Diamond dependency. At build time, NuGet analyzes all the packages that a project ......
Read more >Can a program depend on a library during compilation but not ...
A compile-time dependency is generally required at runtime. In maven, a compile scoped dependency will be added to the classpath on runtime ......
Read more >View the Gradle Dependency Tree - Tom Gregory
In Gradle dependencies are libraries required to build your code. ... In this article you'll learn how to view the dependency tree, ...
Read more >Managing dependencies in Visual Studio C++ projects with ...
It is important to note that in the general case it is not possible to link libraries compiled with a different build type...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, i’m a bit confused myself, did this not mean to be released?
Unstale
I might see if I can take this one