-
Hi, I was looking for a way to declare something as a devdependency in the capabilities but didn't see it mentioned in the docs. However, looking around in the profiles directory I eventually found a devOnly field? I think it should be mentioned in the main depcheck docs, but I was also wondering if there are comparable properties for peer dependencies, or there's no need because that's determined by the kit type of app vs library? The default is prod dependencies for an 'app', with devDependencies indicated by the devOnly property. Questions
Let me know if this should be in discussions? I did have one actionable item (adding to the depcheck readme) so I started writing it in issues. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
dependencies
for apps, orpeerDependencies
+devDependencies
for libraries.devOnly
flag controls whether a capability is considered depending on whether you are the author or the consumer of the package. If you're the author, dep-check resolves it to real packages and makes sure the resolved packages are correctly declared. If you're a consumer, the capability is ignored.