From 7949ec1fc5eafe26fbf9bbb01ce27131c12df13a Mon Sep 17 00:00:00 2001 From: Henning Hall Date: Fri, 7 Sep 2018 15:08:15 +0200 Subject: [PATCH] Added npm readme --- .npmignore | 1 + npmREADME.md | 3 +++ package.json | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 npmREADME.md diff --git a/.npmignore b/.npmignore index 15aecaa..4a3b923 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,5 @@ demo docs example +githubREADME.md .gitignore diff --git a/npmREADME.md b/npmREADME.md new file mode 100644 index 0000000..d0bc317 --- /dev/null +++ b/npmREADME.md @@ -0,0 +1,3 @@ +# React Native Date Picker +A cross platform react native date picker component for android and ios. Including 3 different modes, date, time, and datetime. The date picker is customizable and have mulitple language support. + diff --git a/package.json b/package.json index 810a181..66a5518 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "A Cross Platform React Native Picker", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prepublish": "mv README.md githubREADME.md && mv npmREADME.md README.md", + "postpublish": "mv README.md npmREADME.md && mv githubREADME.md README.md" }, "repository": { "type": "git",