Plugin that can wait
Install the plugin:
yarn plugin import https://raw.githubusercontent.com/zemd/yarn-plugin-wait/main/bundles/%40yarnpkg/plugin-wait.jsWaiting for specific amount of time:
yarn wait 2s
yarn wait 10m
yarn wait "15s 50ms"Waiting for specific amount of time and running command at the end:
yarn wait 2m -c 'echo "Hello World!"'Waiting for the command to return exit code 0 if it doesn't come try after the timeout:
yarn wait 10s -c 'docker exec -it postgres pg_isready' -wyarn-plugin-wait is released under the MIT license.