From c9de081e60a5d7b2e6a4b74c090a80200f229e8f Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Tue, 13 Sep 2016 11:24:30 -0700 Subject: [PATCH] copying more files into the package --- scripts/publish/build.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/publish/build.js b/scripts/publish/build.js index d99de25ee3e2..5370311bacdb 100755 --- a/scripts/publish/build.js +++ b/scripts/publish/build.js @@ -14,6 +14,7 @@ const root = path.join(__dirname, '../..'); const dist = path.join(root, 'dist'); const packagesRoot = path.join(root, 'packages'); + function copy(from, to) { from = path.relative(process.cwd(), from); to = path.relative(process.cwd(), to); @@ -105,6 +106,15 @@ Promise.resolve() return promise.then(() => current); }, Promise.resolve()); }) + .then(() => { + // Copy all resources that might have been missed. + return Promise.all([ + 'CHANGELOG.md', 'CONTRIBUTING.md', 'LICENSE', 'README.md' + ].map(fileName => { + console.log(`Copying ${fileName}...`); + return copy(fileName, path.join('dist/angular-cli', fileName)); + })); + }) .then(() => process.exit(0), (err) => { console.error(err); process.exit(1);