-
Notifications
You must be signed in to change notification settings - Fork 373
Open
Labels
analyzerAbout the analyzer toolAbout the analyzer tool
Description
Describe the bug
ORT incorrectly treats dev dependencies of NPM workspace packages as regular dependencies.
To Reproduce
Steps to reproduce the behavior:
- First clone this repo
- Then scan it and create a web report
- Open the tree tab
- See the tree includes dev depencency
typescript-json-schema
Expected behavior
Dev dependencies of workspace packages should be correctly identified and scoped as dev dependencies.
Console / log output
No console output is relevant for this issue.
Environment
- ORT version: 74.1.0
- Java version: 21
- OS: Linux
Additional context
I created a minimal example here for your convenience. There are two packages there:
-
@myorg/theme/package.json - Workspace package with dev dependencies
- Has
csscolorparseras a regular dependency - Has
typescript-json-schemaas a dev dependency
- Has
-
package.json - Defines workspace configuration
- Uses
workspaces: ["@myorg/*"] - Has
geojson-vtas a regular dependency
- Uses
All packages in the devDependencies section of @myorg/theme are treated as regular dependencies. Contrasting with geojson-vt@3.2.1, whose dev dependencies (rollup, eslint, etc.) are correctly excluded.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
analyzerAbout the analyzer toolAbout the analyzer tool