From 972f256eb7b7343c13f66ec124e8a54d8b699260 Mon Sep 17 00:00:00 2001 From: David Lee Date: Sun, 1 Jan 2023 20:35:12 -0800 Subject: [PATCH] Use `prepare` instead of `prepublishOnly` to transpile package --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5e6d6574c09..196f31d96bd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "node": ">=16.0.0" }, "scripts": { - "prepublishOnly": "yarn build", + "prepare": "yarn build", "start": "echo THIS IS FOR LEGACY PURPOSES ONLY. && babel src -w -s -d lib --verbose --extensions \".ts,.js\"", "dist": "echo 'This is for the release script so it can make assets (browser bundle).' && yarn build", "clean": "rimraf lib dist",