From e9835cbd855a341b5cd31771c9ffa0e02d1011fe Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 31 Aug 2022 22:05:37 +0100 Subject: Use prepare instead of prepublish to update browser build --- NEWS | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b9c9d40..7615dbc 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,9 @@ +# 1.5.1 + +* Fix: npm 7 changed the behaviour of prepublish, causing the browser build not + to be updated before publishing to npm. We now use prepare instead of + prepublish, which has the same behaviour that prepublish previously had. + # 1.5.0 * Only use the alt text of image elements as a fallback. If an alt attribute is diff --git a/package.json b/package.json index 8abcb63..3156136 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "scripts": { "pretest": "eslint lib test", "test": "mocha 'test/**/*.tests.js'", - "prepublish": "make mammoth.browser.min.js" + "prepare": "make mammoth.browser.min.js" }, "license": "BSD-2-Clause" } -- cgit v1.2.3