From 762f1ed8193dac5175e60d72ce6d0e43f55d6f90 Mon Sep 17 00:00:00 2001 From: Allen Smith Date: Fri, 4 Nov 2016 15:07:09 -0400 Subject: [PATCH] Include readme when building --- package.json | 2 +- tools/build.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bb14fee..6d8ccf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "brightwheel", - "version": "0.1.6", + "version": "0.1.7", "description": "Build beautiful Electron user interfaces with Photon and Etch", "repository": "loranallensmith/brightwheel", "author": "Allen Smith <loranallensmith@github.com>", diff --git a/tools/build.js b/tools/build.js index 3fd04d1..4b66c32 100644 --- a/tools/build.js +++ b/tools/build.js @@ -39,7 +39,7 @@ for (const format of ['es6', 'cjs', 'umd', 'iife', 'amd']) { }))); } -// Copy package.json and LICENSE.txt +// Copy package.json, LICENSE.txt, and README.md promise = promise.then(() => { delete pkg.private; delete pkg.devDependencies; @@ -48,6 +48,7 @@ promise = promise.then(() => { delete pkg.babel; fs.writeFileSync('dist/package.json', JSON.stringify(pkg, null, ' '), 'utf-8'); fs.writeFileSync('dist/LICENSE.txt', fs.readFileSync('LICENSE.txt', 'utf-8'), 'utf-8'); + fs.writeFileSync('dist/README.md', fs.readFileSync('README.md', 'utf-8'), 'utf-8') }); promise.catch(err => console.error(err.stack)); // eslint-disable-line no-console