MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getDistPath

Function getDistPath

packages/webpack5/src/helpers/platform.ts:132–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 * Utility to get the dist file path for the currently targeted platform
131 */
132export 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

Callers 1

getAbsoluteDistPathFunction · 0.70

Calls 3

getPlatformFunction · 0.85
getPlatformNameFunction · 0.85
getDistPathMethod · 0.80

Tested by

no test coverage detected