* Fix up the generated dts content, and ensure it's using a relative path to find the core.d.ts * file, rather than node resolving it.
(config: BuildConfig, srcPath: string, relativePath?: string)
| 331 | * file, rather than node resolving it. |
| 332 | */ |
| 333 | function fixDtsContent(config: BuildConfig, srcPath: string, relativePath?: string) { |
| 334 | let dts = readFileSync(srcPath, 'utf-8'); |
| 335 | |
| 336 | // ensure we're just using a relative path |
| 337 | if (relativePath) { |
| 338 | dts = dts.replace(/'@builder\.io\/qwik(.*)'/g, `'${relativePath}$1'`); |
| 339 | } |
| 340 | |
| 341 | // replace QWIK_VERSION with the actual version number, useful for debugging |
| 342 | return dts.replace(/QWIK_VERSION/g, config.distVersion); |
| 343 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…