()
| 130 | * Utility to get the dist file path for the currently targeted platform |
| 131 | */ |
| 132 | export function getDistPath() { |
| 133 | const platform = getPlatform(); |
| 134 | |
| 135 | // use platform specific entry path |
| 136 | if (platform.getDistPath) { |
| 137 | return platform.getDistPath(); |
| 138 | } |
| 139 | |
| 140 | // fallback to a generic platforms/<platform>/dist folder |
| 141 | return `${env.buildPath ?? 'platforms'}/${getPlatformName()}/dist`; |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Utility to get the absolute dist file path for the currently targeted platform |
no test coverage detected