({ addon, git })
| 16 | } |
| 17 | |
| 18 | async 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 | |
| 30 | async function getAddonTemplateDir({ addon, git }) { |
| 31 | if (git) { |
no test coverage detected