From d48013114a175df1aa4c6cf43ca6d107b848ed3d Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Wed, 22 Jun 2022 03:25:11 -0400 Subject: [PATCH] Apply patch before build --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cdf1eb0..35a61ca 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,10 @@ "node": ">= 16" }, "scripts": { - "prepare": "git submodule update --init --recursive && git apply espeakng-rs.patch --directory=espeakng-rs", + "prepare": "git apply espeakng-rs.patch --directory=espeakng-rs", "artifacts": "napi artifacts", - "build": "napi build --platform --release", - "build:debug": "napi build --platform", + "build": "npm run prepare || napi build --platform --release", + "build:debug": "npm run prepare || napi build --platform", "prepublishOnly": "napi prepublish -t npm", "test": "ava", "version": "napi version"