-
Notifications
You must be signed in to change notification settings - Fork 3k
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
chore(dtslint): use npx #4088
chore(dtslint): use npx #4088
Conversation
What if we don't install dtslint in package but try to run via npx? With npx it's possible to install different version of tsc if needed, or let dtslint resolves by their own. |
I'm not familiar with Also, regarding a different I think it's downloading stuff at runtime is somehow related to the problems that are effected by pinning versions in the |
Npx resolves to its temp (npm cache) location if package is not specified / installed under node_modules. Theoritically it shoudln't affected by local module installation due to its behavior. |
Interesting. I'll have a look at it. |
Well, it works, but it installs a fresh copy into its cache each time. So it's kinda slow. |
yeah, but it's ci so I wouldn't be much worried for some slowness. if someone need to run it on local frequently, may need to think better workaround though. |
The Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
🚢 |
Description:
This PR removes the running ofdtslint
from the full-validation build.Until #4079 is sorted anddtslint
can be installed without pinned dependency versions, it'll be less painful to just switch it off. Having every PR fail is too annoying and having to update the lock file all the time is absurd.Its running can be re-instated once #4079 fixes the problem.This PR disables a new
dtslint
rule that's not needed and removesdtslint
from the project'spackage.json
. Instead, it'sinstalled intorun usingspec-dtslint-build
(which is a git-ignored directory)npx
, which installs a temporary copy. This should mean thatdtslint
installs (on Travis, at least) are no longer pinned by the project's lock file - something that has been causing problems.Related issue (if exists): #4079