From 5acda82399005780f1acbb460b2b85efde29eb97 Mon Sep 17 00:00:00 2001 From: "Seo Myunggyun (Jonathan)" Date: Wed, 15 Nov 2023 19:28:56 +0900 Subject: [PATCH] Temporary workaround to `yarn build` fail --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a12d7ee9fa3..1f5392e4921 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "Libplanet.Tools" ], "scripts": { - "build": "_libplanet_build=1 yarn workspaces foreach -p -A run build", + "build": "printf \"\\033[41;97mLibplanet note: currently, it is expected for `yarn build` to fail on the first run and succeed on the second run due to an unknown issue unrelated to the codebase (see issue #3492,) so the build phase runs twice. Whenever the culprit is specified please remove this message and the duplicate call.\\033[0m\n\" >&2 && _libplanet_build=1 yarn workspaces foreach -p -A run build || _libplanet_build=1 yarn workspaces foreach -p -A run build", "pack-all": "yarn workspaces foreach -p -A --include @planetarium/\\* pack", "postinstall": "env | grep -E '^_libplanet_build=1$' || yarn build && echo ran yarn build", "prepack": "printf \"\\033[41;97mLibplanet note: `yarn pack` is not allowed on the project root level, as it produces useless empty package. use `yarn pack-all` instead.\\033[0m\n\" > /dev/stderr && false",