-
Notifications
You must be signed in to change notification settings - Fork 888
Running CLI when checked out via a Git dependency does not work #4131
Comments
@wilg tslint was never designed to be used that way. the repo does not contain compiled artifacts--only the published NPM package contains those. so of course it doesn't run: there's nothing to run! this to say: the |
I understand that, but I was under the impression there was some kind of package.json configuration (a I am trying to use #3641 in my project, but without the ability to use TSLint from Git I don't see how I can use that until a release is created. Is there another way to do this? Does everyone just wait until a release is made to test TSLint against their code? Alternatively, is there an expected date for the next release? |
@wilg instead of depending on the git repo, checkout the repo locally and build it. then |
Thanks, I will try that for testing. Unfortunately, it still means that I can't easily add the latest TSLint as a project dependency until an official release is made (because no other developers or build systems will be able to run it without a bunch of custom glue). It also seems like it would make contributing to TSLint a bit harder because I can't fork it to add a feature or fix a bug and then use my enhanced/fixed version until an official release is made, which is a pretty common pattern. |
yes that is true and by design: you can not depend on the tip of |
@giladgray Can we have nightly releases the way TypeScript does? There wouldn't be any guarantee of stability. |
@wilg What I usually d in such cases is to create a fork, and after creating my fix, I branch of from the branch for the PR, and commit the compiled output into that branch only. This way I can put |
@JoshuaKGoldberg i'm in favor of nightlies 👍 |
Per #4534 this seems like not a priority anymore. If anybody actually does need this (please do post here if so!) we can reopen. You can always run TSLint with |
Bug Report
With TSLint included via Yarn with
"tslint": "https://github.com/palantir/tslint#master"
(or pinned to a recent master sha like e766f51), TSLint installs but the CLI does not work.Using
"tslint": "5.11.0",
works fine.Actual behavior
No
lib
folder exists, presumably due to something in the compilation process:When installed via a version on NPM (which works):
Expected behavior
TSLint's CLI works when installed in this way.
The text was updated successfully, but these errors were encountered: