kibana/packages/kbn-find-used-node-modules
Tiago Costa e41569b4a6
fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463)
* 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
2022-11-03 01:04:55 +00:00
..
src chore(NA): remove src folder requirement from packages (part 2) (#138476) 2022-08-30 15:57:35 +01:00
BUILD.bazel [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
index.ts chore(NA): remove src folder requirement from packages (part 2) (#138476) 2022-08-30 15:57:35 +01:00
jest.config.js [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
kibana.jsonc add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
package.json [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
README.md [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
tsconfig.json fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00

@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.