mirror of
https://github.com/lensapp/lens.git
synced 2024-12-01 10:37:09 +03:00
618a1c7004
- Also un-bump xterm-fit-addon as it is only compatible with xterm@^5 Signed-off-by: Sebastian Malton <sebastian@malton.name>
24 lines
633 B
Bash
Executable File
24 lines
633 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
PACKAGE_JSON_PATHS=$(find open-lens/* packages/* -type f -name package.json -not -path "*/node_modules/*")
|
|
exitCode=0
|
|
|
|
while IFS= read -r PACKAGE_JSON_PATH; do
|
|
PACKAGE_NAME=$(<"${PACKAGE_JSON_PATH}" jq .name)
|
|
PACKAGE_IS_PRIVATE=$(<"${PACKAGE_JSON_PATH}" jq .private)
|
|
|
|
if [[ "${PACKAGE_IS_PRIVATE}" == "true" ]]; then
|
|
continue
|
|
fi
|
|
|
|
PACKAGE_HAS_PUBLISH_CONFIG=$(<"${PACKAGE_JSON_PATH}" jq '.publishConfig != null')
|
|
|
|
if [[ "${PACKAGE_HAS_PUBLISH_CONFIG}" == "false" ]]; then
|
|
echo "${PACKAGE_NAME} is missing publish config"
|
|
exitCode=1
|
|
fi
|
|
done <<< "${PACKAGE_JSON_PATHS}"
|
|
|
|
exit "${exitCode}"
|