-
Notifications
You must be signed in to change notification settings - Fork 885
tslint npm package missing './test/parse' #3072
Comments
I can't reproduce this locally. |
Thank you for your reply. I have reinstall all packages and still encounter the same issue above. I even create a new project just to test the tslint. Btw does the OS affect on this behavior? I am using windows 10. |
@m1chaeldg Are you using I can reproduce the issue in both MacOS and Linux with yarn 0.27.5. |
It's caused by
The default
That's why the A workaround is to remove @ajafff , I suggest to rename |
Just found that there were several issues in this project (#1770) and in yarn project (yarnpkg/yarn#1235, yarnpkg/yarn#1825) about tslint doesn't work. If tslint changes the folder name, it would avoid trouble to others. I spend almost one afternoon to debug it. |
That would definitely fix this issue. But I don't know if we want consider renaming this folder a breaking change. For now I'd just require |
thanks |
Bug Report
TypeScript code being linted
// code snippet
with
tslint.json
configuration:Actual behavior
running the cli below produce an error
tslint -c tslint.json -t stylish '{src,tests,scripts}/**/*.{ts,tsx}'
module.js:487
throw err;
^
Error: Cannot find module './test/parse'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\temp\helloworld\node_modules\tslint\lib\test.js:28
:13)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
Expected behavior
I think the './test/parse' files/modules are not publish
The text was updated successfully, but these errors were encountered: