Our great sponsors
-
dependency-cruiser
Validate and visualize dependencies. Your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
>Which package do you use for the linear algebra calculation?
He doesn't. https://github.com/codemix/deprank/blob/main/src/index.ts#L1...
Great project!
One feature request: Running the npx command searched only for the js files, not for the ts files. When I built deprank locally with yarn, it also showed the ts files. After looking at dependency-cruiser figure it has to do with what typescript compilers are available where.
It would be great if the npx command you provide in your readme would work regardless of my local setup - dependency-cruiser has documentation and one example of a suitable npx command here: https://github.com/sverweij/dependency-cruiser/blob/develop/...
My suggestion would be to check if any ts file is part of the extension option (i.e. --ext=".js,.jsx, .ts, .tsx") and only then do the magic needed to also show ts files.
Related posts
- Taking Frontend Architecture Serious with dependency-cruiser
- [AskJS] What ESLint rules do you use to achieve better isolation of components?
- how to automatically run a script / yarn command before each dev hot-reload build
- Developing your own Chrome Extension - Fixing Errors with ts-morph and using Buns API (Part 4)
- TypeStat: Converts JavaScript to TypeScript and TypeScript to Better TypeScript