| 679 | |
| 680 | // Fix up dependencies in case those dependencies' names have changed. |
| 681 | const getUpdatedTarget = (originalTarget: dataform.ITarget) => { |
| 682 | // It's possible that we don't have a new Target for a dependency that failed to compile, |
| 683 | // so fall back to the original Target. |
| 684 | if (!newTargetByOriginalTarget.has(targetStringifier.stringify(originalTarget))) { |
| 685 | return originalTarget; |
| 686 | } |
| 687 | return newTargetByOriginalTarget.get(targetStringifier.stringify(originalTarget)); |
| 688 | }; |
| 689 | actions.forEach(action => { |
| 690 | if (!(action instanceof dataform.Declaration)) { |
| 691 | // Declarations cannot have dependencies. |