-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
🐛 Strict mode's "Type-only imports should be in devDependencies" is incorrect #951
Comments
While I appreciate your continued and creative ways to not provide an actual reproduction, this report is a duplicate of #248. |
? What's the point of a repro if you're already aware of the behavior? 😅 The repro is just this anyway: npm init -y
npm install serialize-error
echo "$(pbpaste)" > index.ts # copy my example code first
knip --strict
That issue only talks about All in all, following this advice leads to publishing broken/ Even TypeScript maintainers disagree with the advice: microsoft/types-publisher#81 (comment) |
I don't want to get into this discussion, all I ask for is to respect my time. Chances to get help simply increase if I don't have to make assumptions and I don't have to create minimal reproductions and fixtures myself.
I don't disagree with the issue, it's just that I'm still in the same boat (quoting myself):
You can use |
My point is that repro was not needed here because you're aware of the issue/behavior, you wouldn't even have checked it out, pointing to a waste of my time. I can always provide a repro if necessary, and I did in my other issues. "Repro please" would have sufficed without getting creative. I myself am an OS maintainer and feel bad insta-closing issues where people clearly put way too much effort into opening, just because they overlooked something simple or did not find similar requests.
Thank you! Appreciated the effort you put into the project. |
Prerequisites
Reproduction url
Technically not a "bug"
Reproduction access
Description of the issue
While it's true that local types should not be part of
dependencies
, this however is not accurate when the imported type becomes part of the package's public API.Example:
If a third party installs my package,
Soup
will be of typeany
. The fix is to installserialize-error
separately — which meansserialize-error
is indeed a required dependency of my package, not a dev dependency.The text was updated successfully, but these errors were encountered: