From 7724a36f3564c66c469023f92645bd86a10f9296 Mon Sep 17 00:00:00 2001 From: Drew Keller Date: Fri, 8 Mar 2019 22:15:45 -0600 Subject: [PATCH 1/2] Rebuild code before every publish The prePublishScript run by publish-please does not handle chained commands. Instead chain the test and build steps in an npm script. --- .publishrc | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.publishrc b/.publishrc index 1b9cd72..406ede5 100644 --- a/.publishrc +++ b/.publishrc @@ -9,6 +9,6 @@ }, "confirm": true, "publishTag": "latest", - "prePublishScript": "npm test && npm run build", + "prePublishScript": "npm run build-and-test", "postPublishScript": false } diff --git a/package.json b/package.json index 2a175c1..88f7595 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "scripts": { "clean": "rimraf lib", "build": "npm run clean && babel src --out-dir lib", + "build-and-test": "npm run test && npm run build", "install-react": "enzyme-adapter-react-install 16", "lint": "eslint ./", "test": "jest", From 6de778ce64f958f392761e6037fdd56ebd1aabe7 Mon Sep 17 00:00:00 2001 From: Drew Keller Date: Fri, 8 Mar 2019 22:16:22 -0600 Subject: [PATCH 2/2] Bump patch version to 1.4.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 88f7595..4de252c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-component-update", - "version": "1.4.0", + "version": "1.4.1", "description": "Extends the native React Component to streamline updates", "main": "lib/index.js", "files": [