From 046c5e8b45a1a2dc20bf60a7475bb0925ab62105 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Tue, 11 Sep 2018 13:32:16 +0300 Subject: [PATCH] Add "pretest" and "posttest" scripts --- .travis.yml | 4 ---- package.json | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2147042a..ed5774e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,12 +17,8 @@ jobs: - name: "Test package" language: node_js node_js: 8 - before_script: - - npm run prepublishOnly script: - npm run test - after_script: - - npm run postpublish - stage: deploy name: "NPM Package" diff --git a/package.json b/package.json index a1194506..972038a3 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,8 @@ "svglint": "svglint icons/* --ci", "prepublishOnly": "node scripts/prepublish.js", "postpublish": "rm icons/*.js index.js", - "test": "jest" + "test": "jest", + "pretest": "npm run prepublishOnly", + "posttest": "npm run postpublish" } }