✨ feature: recognize type imports in jsdoc
Dependency-cruiser now recognizes imports in jsdoc - both the new one introduced in TS5.5 (e.g. /** @import { something } from "blahblah"; */
), as well as the older notation (e.g. /** @type {import('blahblah').something} */
).
Thanks to @louwers for raising the associated issue and testing a very early version of PR #965
- See detectJSDocImports: detect dependencies in JSDoc comments in the options references for more information and some of the caveats (a.o. really needs the TypeScript compiler)
- The PR's also grew the dependencyTypes
jsdoc
,jsdoc-bracket-import
andjsdoc-import-tag
for use in your rules.
commits:
- 09e9e41 feat(extract): adds recognition of jsdoc
@import
type imports (#965)
see microsoft's announcement on the thing - 0d49477 feat(extract): adds recognition of the more classic jsdoc 'bracket' imports (#969)
- fedead6 feat(init): adds question to enable detection of jsdoc imports (#970)
🐛 fixes
- 09ae707 fix(npm): shortens the message in the (only) distributed script
👷 maintenance
- aae6edd/ b5bfe76 refactor: addresses small linting issues
- 2d2b0e5 refactor(resolve): uses Maps for the context maps
- 79e1aa1 build(npm): updates external dependencies
- 09ae707 fix(npm): shortens the message in the (only) distributed script