From 35aca965b0c6786f5f269ba0b49ee69793e9d522 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 22 Mar 2019 12:17:11 -0700 Subject: [PATCH] [tools] Simplify publish scripts --- .npmignore | 2 -- package.json | 10 +++++++--- scripts/postpublish.sh | 12 ------------ scripts/prepublish.sh | 18 ------------------ 4 files changed, 7 insertions(+), 35 deletions(-) delete mode 100644 .npmignore delete mode 100755 scripts/postpublish.sh delete mode 100755 scripts/prepublish.sh diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 0cf6bb58..00000000 --- a/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -docs/ -test/ diff --git a/package.json b/package.json index 6d5e132a..469cd24e 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,7 @@ "init": "bash ./scripts/init.sh", "lint": "bash ./scripts/lint.sh", "log": "bash ./scripts/log.sh", - "prepublishOnly": "bash ./scripts/prepublish.sh", - "postpublish": "bash ./scripts/postpublish.sh", + "prepublishOnly": "bash ./scripts/build.sh", "test": "bash ./scripts/test.sh", "watch": "bash ./scripts/watch.sh" }, @@ -48,5 +47,10 @@ }, "engines": { "node": ">=0.6.0" - } + }, + "files": [ + "MIT-LICENSE.txt", + "bin/gonzales.js", + "lib/gonzales.js" + ] } diff --git a/scripts/postpublish.sh b/scripts/postpublish.sh deleted file mode 100755 index 0e65da9c..00000000 --- a/scripts/postpublish.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -set -e - -print_npmignore() { - cat << EOIGNORE -docs/ -test/ -EOIGNORE -} - -print_npmignore > .npmignore diff --git a/scripts/prepublish.sh b/scripts/prepublish.sh deleted file mode 100755 index a0cf0f3b..00000000 --- a/scripts/prepublish.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e - -function print_npmignore() { - cat << EOIGNORE -docs/ -log/ -node_modules/ -scripts/ -src/ -test/ -EOIGNORE -} - -print_npmignore > .npmignore - -./scripts/build.sh