We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, scripts that contains urls are interpreted as http: unlisted dependancies, but it shouldn't be.
http:
Repro here :https://stackblitz.com/edit/stackblitz-starters-qj4jkx?file=package.json
Simplest package json for repro :
{ "scripts": { "generate": "npx swagger-typescript-api -p http://localhost:3030/swagger.v1.json -o ./some-folder/generated --axios --single-http-client --name TestApi.ts --type-prefix Test", }, "devDependencies": { "knip": "^2.38.1" } }
Output :
Unlisted dependencies (1) http: package.json Unlisted binaries (1) swagger-typescript-api package.json
Expected output :
Unlisted binaries (1) swagger-typescript-api package.json
I may have some time next week to look into it
The text was updated successfully, but these errors were encountered:
This is slightly confusing, as npx also has a --package (or -p) argument. Technically, one could argue that you should use the separator:
npx
--package
-p
npx swagger-typescript-api -- -p http://localhost:3030/swagger.v1.json
This is also in the npx docs:
The double-hyphen character is recommended to explicitly tell npm to stop parsing command line options and switches.
Still, url's are invalid dependencies (except for e.g. Deno), so that's something Knip can take into account here too.
Sorry, something went wrong.
🚀 This issue has been resolved in v2.38.2. See Release 2.38.2 for release notes.
1ffd290
Thanks a lot @webpro ! You are awesome ❤️
Thanks Nicolas, keep 'em coming :)
No branches or pull requests
Currently, scripts that contains urls are interpreted as
http:
unlisted dependancies, but it shouldn't be.Repro here :https://stackblitz.com/edit/stackblitz-starters-qj4jkx?file=package.json
Simplest package json for repro :
Output :
Expected output :
I may have some time next week to look into it
The text was updated successfully, but these errors were encountered: