fix(ivy): ngcc - write .d.ts.map files to the correct folder (#29556)

Previously we were writing `.d.ts` and `.d.ts.map` to different
folders.

PR Close #29556
This commit is contained in:
Pete Bacon Darwin
2019-03-27 22:09:28 +00:00
committed by Jason Aden
parent 1df9908579
commit 78ba503fb9
2 changed files with 17 additions and 2 deletions

View File

@ -52,7 +52,8 @@ export class NewEntryPointFileWriter extends InPlaceFileWriter {
protected writeFile(file: FileInfo, entryPointPath: AbsoluteFsPath, newDir: AbsoluteFsPath):
void {
if (isDtsPath(file.path)) {
if (isDtsPath(file.path.replace(/\.map$/, ''))) {
// This is either `.d.ts` or `.d.ts.map` file
super.writeFileAndBackup(file);
} else {
const relativePath = relative(entryPointPath, file.path);