mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* chore(NA): remove overrides for rootDir on packages * chore(NA): replace './target_types' with 'target_types' on packages * chore(NA): removes stripInternal false configs * chore(NA): remove unused strip internals |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
tsconfig.json |
@kbn/find-used-node-modules
Simple abstraction over the @babel/parser
and the @babel/traverse
to find the node_modules used by a list of files.
findUsedNodeModules(resolver, entryPaths): string[]
Pass an ImportResolver
instance from @kbn/import-resolver
and a list of absolute paths to JS files to get the list of node_modules
used by those files and the files the import.