MCPcopy Create free account
hub / github.com/Create-Node-App/create-node-app / getAddonPackagePath

Function getAddonPackagePath

src/paths.js:18–28  ·  view source on GitHub ↗
({ addon, git })

Source from the content-addressed store, hash-verified

16}
17
18async function getAddonPackagePath({ addon, git }) {
19 if (git) {
20 const { dir, type } = await solveGitPath(addon);
21 if (type) {
22 return path.resolve(dir, type, 'package');
23 }
24 return path.resolve(dir, 'package');
25 }
26
27 return `../addons/${addon}/package`;
28}
29
30async function getAddonTemplateDir({ addon, git }) {
31 if (git) {

Callers 1

package.jsFile · 0.85

Calls 1

solveGitPathFunction · 0.85

Tested by

no test coverage detected