How to use the dependency-tree function in dependency-tree

To help you get started, we’ve selected a few dependency-tree examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github youzan / vant / packages / vant-cli / src / compiler / gen-style-entry.ts View on Github external
function analyzeDeps(component: string) {
  const checkList = ['base'];

  search(
    dependencyTree({
      directory: ES_DIR,
      filename: join(ES_DIR, component, 'index.js'),
      filter: path => !~path.indexOf('node_modules')
    }),
    component,
    checkList
  );

  checkList.push(component);

  return checkList.filter(checkStyleExists);
}

dependency-tree

Get the dependency tree of a module

MIT
Latest version published 7 months ago

Package Health Score

75 / 100
Full package analysis

Popular dependency-tree functions