Skip to content

Commit 1d633d9

Browse files
committed
no-mistakes(document): Updated CLAUDE.md pre-release reference; fixed shellcheck warnings
1 parent 8d01654 commit 1d633d9

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ PRs welcome. When contributing:
565565

566566
For significant new features or architectural changes, open an issue first to discuss the approach.
567567

568-
**Publishing to npm:** see [docs/RELEASING.md](docs/RELEASING.md) — the procedure (RC → smoke-test → promote) plus the non-obvious gotchas (publish with `bun`, regen the lockfile after every version bump, runtime imports must be `dependencies`, verify a real external install in npm *and* pnpm).
568+
**Publishing:** To iterate an unreleased change against a downstream project, use [docs/features/prerelease.md](docs/features/prerelease.md) — publish to the private registry (`bun run prerelease`), consume it, iterate, and revert with one verified command. For full public releases, see [docs/RELEASING.md](docs/RELEASING.md) — the procedure (RC → smoke-test → promote) plus the non-obvious gotchas (publish with `bun`, regen the lockfile after every version bump, runtime imports must be `dependencies`, verify a real external install in npm *and* pnpm).
569569

570570
## Roadmap pointer
571571

tools/prerelease/bootstrap.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ fi
4444

4545
echo "waiting for $HOST ..."
4646
for _ in $(seq 1 60); do
47-
curl -fsS -o /dev/null "$HOST/" && break || sleep 1
47+
if curl -fsS -o /dev/null "$HOST/"; then
48+
break
49+
fi
50+
sleep 1
4851
done
4952

5053
if ! curl -fsS -o /dev/null -u "$OWNER:$PASS" "$HOST/api/v1/user" 2>/dev/null; then

tools/prerelease/detect-prerelease-pins.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ NS_RE='@metaobjectsdev/|com\.metaobjects|(^|[^A-Za-z])MetaObjects(\.|"|<|$)|(^|[
4242
# publisher's config. MO_REGISTRY_BASE overrides it for a different registry.
4343
DEFAULT_REGISTRY_HOST='gitea.mealing.com'
4444
CFG="$(cd "$(dirname "$0")" && pwd)/registry.env"
45+
# shellcheck source=/dev/null
4546
[ -f "$CFG" ] && . "$CFG"
4647
REGISTRY_HOST="$DEFAULT_REGISTRY_HOST"
4748
if [ -n "${MO_REGISTRY_BASE:-}" ]; then
@@ -114,6 +115,7 @@ scan() { # scan <label> <grep-args...>
114115
out=$(grep -rInE --binary-files=without-match "${MANIFESTS[@]}" "${EXCLUDES[@]}" "$@" "$ROOT" 2>/dev/null | head -20) || return 0
115116
[ -n "$out" ] || return 0
116117
hit "$label"
118+
# shellcheck disable=SC2001
117119
echo "$out" | sed 's/^/ /' >&2
118120
}
119121

@@ -147,6 +149,7 @@ while IFS= read -r f; do
147149
' "$f")
148150
if [ -n "$bad" ]; then
149151
hit "vendor dependency pinned to a pre-release version"
152+
# shellcheck disable=SC2001
150153
echo "$bad" | sed "s|^| $f:|" >&2
151154
fi
152155
done < <(grep -rIlE --binary-files=without-match "${LOCKFILES[@]}" "${EXCLUDES[@]}" \
@@ -168,6 +171,7 @@ while IFS= read -r pom; do
168171
' "$pom")
169172
if [ -n "$bad" ]; then
170173
hit "pom pins a pre-release version (dependency or version property)"
174+
# shellcheck disable=SC2001
171175
echo "$bad" | sed "s|^| $pom:|" >&2
172176
fi
173177
done < <(grep -rIl --exclude-dir=.git --include=pom.xml 'com\.metaobjects' "$ROOT" 2>/dev/null)

tools/prerelease/prerelease-link.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ die() { printf '\033[31m✗ %s\033[0m\n' "$*" >&2; exit 1; }
6969
#
7070
# MO_REGISTRY_OWNER=<owner> tools/prerelease/prerelease-link.sh link --version <ver>
7171
DEFAULT_REGISTRY='https://gitea.mealing.com'
72+
# shellcheck source=/dev/null
7273
[ -f "$HERE/registry.env" ] && . "$HERE/registry.env"
7374
BASE="${MO_REGISTRY_BASE:-$DEFAULT_REGISTRY}"; OWNER="${MO_REGISTRY_OWNER:-}"; TOKEN="${MO_REGISTRY_TOKEN:-}"
7475
BASE="${BASE%/}"

0 commit comments

Comments
 (0)