File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const root = path.join(__dirname, '../..');
14
14
const dist = path . join ( root , 'dist' ) ;
15
15
const packagesRoot = path . join ( root , 'packages' ) ;
16
16
17
+
17
18
function copy ( from , to ) {
18
19
from = path . relative ( process . cwd ( ) , from ) ;
19
20
to = path . relative ( process . cwd ( ) , to ) ;
@@ -105,6 +106,15 @@ Promise.resolve()
105
106
return promise . then ( ( ) => current ) ;
106
107
} , Promise . resolve ( ) ) ;
107
108
} )
109
+ . then ( ( ) => {
110
+ // Copy all resources that might have been missed.
111
+ return Promise . all ( [
112
+ 'CHANGELOG.md' , 'CONTRIBUTING.md' , 'LICENSE' , 'README.md'
113
+ ] . map ( fileName => {
114
+ console . log ( `Copying ${ fileName } ...` ) ;
115
+ return copy ( fileName , path . join ( 'dist/angular-cli' , fileName ) ) ;
116
+ } ) ) ;
117
+ } )
108
118
. then ( ( ) => process . exit ( 0 ) , ( err ) => {
109
119
console . error ( err ) ;
110
120
process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments