({ addon, git })
| 28 | } |
| 29 | |
| 30 | async function getAddonTemplateDir({ addon, git }) { |
| 31 | if (git) { |
| 32 | const { dir, type } = await solveGitPath(addon); |
| 33 | if (type) { |
| 34 | return path.resolve(dir, type, 'template'); |
| 35 | } |
| 36 | return path.resolve(dir, 'template'); |
| 37 | } |
| 38 | |
| 39 | return `${__dirname}/../addons/${addon}/template`; |
| 40 | } |
| 41 | |
| 42 | module.exports = { |
| 43 | getAddonPackagePath, |
no test coverage detected