From 8e4233f181e6f671e5354738b0697e171dcc6974 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 20 Nov 2019 08:25:58 +0200 Subject: [PATCH] Change prepublish to prepublishOnly. Also, make use of the `jest` script consistently --- .github/workflows/test.yml | 3 +++ package.json | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fe6e281e..cc4d8b6a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,6 +32,9 @@ jobs: - name: Lint run: npm run lint + + - name: Build + run: npm run build - name: Run jest tests run: npm run jest -- --runInBand diff --git a/package.json b/package.json index d6fffcff..0cc50b35 100644 --- a/package.json +++ b/package.json @@ -163,14 +163,14 @@ "build": "babel src --out-dir dist", "lint": "eslint . --ignore-path .gitignore", "prettify": "prettier --write \"src/**/*.js\"", - "prepublish": "npm run build", + "prepublishOnly": "npm run build", "pretest": "npm run lint", "release": "npmpub", "jest": "jest", - "test": "jest --coverage", - "watch": "jest --watch", - "test-rule": "jest", - "test-util": "jest" + "test": "npm run jest -- --coverage", + "watch": "npm run jest -- --watch", + "test-rule": "npm run jest", + "test-util": "npm run jest" }, "lint-staged": { "**/*.{js,json}": [