Skip to content

Commit

Permalink
Merge pull request #3498 from greymistcube/chore/yarn-build-fix-worka…
Browse files Browse the repository at this point in the history
…round

🐛 Temporary workaround to `yarn build` fail
  • Loading branch information
greymistcube authored Nov 20, 2023
2 parents 7f06d40 + ff1ef37 commit 06bc830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"Libplanet.Tools"
],
"scripts": {
"build": "_libplanet_build=1 yarn workspaces foreach -p run build",
"pack-all": "yarn workspaces foreach -p --include @planetarium/\\* pack",
"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",
"test": "yarn workspaces foreach -p run test"
Expand Down

0 comments on commit 06bc830

Please sign in to comment.