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",