MCPcopy
hub / github.com/jsdoc/jsdoc / resolvePluginPaths

Function resolvePluginPaths

cli.js:318–338  ·  view source on GitHub ↗
(paths)

Source from the content-addressed store, hash-verified

316 };
317
318 function resolvePluginPaths(paths) {
319 const path = require('jsdoc/path');
320
321 const pluginPaths = [];
322
323 paths.forEach(plugin => {
324 const basename = path.basename(plugin);
325 const dirname = path.dirname(plugin);
326 const pluginPath = path.getResourcePath(dirname, basename);
327
328 if (!pluginPath) {
329 logger.error('Unable to find the plugin "%s"', plugin);
330
331 return;
332 }
333
334 pluginPaths.push( pluginPath );
335 });
336
337 return pluginPaths;
338 }
339
340 cli.createParser = () => {
341 const handlers = require('jsdoc/src/handlers');

Callers 1

cli.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…