@@ -7,8 +7,9 @@ import { ensureUnixPath } from '../../utils/path';
77import { rimraf } from '../../utils/rimraf' ;
88import * as log from '../../utils/log' ;
99import { globFiles } from '../../utils/glob' ;
10- import { EntryPointNode , isEntryPointInProgress , isPackage , PackageNode } from '../nodes' ;
10+ import { EntryPointNode , isEntryPointInProgress , isPackage , PackageNode , fileUrl } from '../nodes' ;
1111import { copyFile } from '../../utils/copy' ;
12+ import { Node } from '../../graph/node' ;
1213
1314export const writePackageTransform : Transform = transformFromPromise ( async graph => {
1415 const entryPoint = graph . find ( isEntryPointInProgress ( ) ) as EntryPointNode ;
@@ -37,6 +38,7 @@ export const writePackageTransform: Transform = transformFromPromise(async graph
3738 declarationFiles . map ( value => {
3839 const relativePath = path . relative ( ngEntryPoint . entryFilePath , value ) ;
3940 const destination = path . resolve ( destinationFiles . declarations , relativePath ) ;
41+ entryPoint . dependsOn ( new Node ( fileUrl ( ensureUnixPath ( relativePath ) ) ) ) ;
4042 return copyFile ( value , destination , { overwrite : true , dereference : true } ) ;
4143 } ) ,
4244 ) ;
@@ -55,6 +57,7 @@ export const writePackageTransform: Transform = transformFromPromise(async graph
5557 assetFiles . map ( value => {
5658 const relativePath = path . relative ( ngPackage . src , value ) ;
5759 const destination = path . resolve ( ngPackage . dest , relativePath ) ;
60+ entryPoint . dependsOn ( new Node ( fileUrl ( ensureUnixPath ( relativePath ) ) ) ) ;
5861 return copyFile ( value , destination , { overwrite : true , dereference : true } ) ;
5962 } ) ,
6063 ) ;
0 commit comments