MCPcopy
hub / github.com/semantic-release/semantic-release / parseConfig

Function parseConfig

lib/plugins/utils.js:69–81  ·  view source on GitHub ↗
(plugin)

Source from the content-addressed store, hash-verified

67}
68
69export function parseConfig(plugin) {
70 let path;
71 let config;
72 if (isArray(plugin)) {
73 [path, config] = plugin;
74 } else if (isPlainObject(plugin) && !isNil(plugin.path)) {
75 ({ path, ...config } = plugin);
76 } else {
77 path = plugin;
78 }
79
80 return [path, config || {}];
81}

Callers 5

get-config.jsFile · 0.90
index.jsFile · 0.90
normalize.jsFile · 0.90
utils.test.jsFile · 0.90
validateStepsFunction · 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…