···516516 when part of a module select.
517517 ([Surya Rose](https://github.com/GearsDatapacks))
518518519519+- Fixed a bug where the check for multiple top-level modules when publishing
520520+ would incorrectly print a warning.
521521+ ([Surya Rose](https://github.com/GearsDatapacks))
522522+519523## v1.9.1 - 2025-03-10
520524521525### Formatter
···11+#!/bin/sh
22+33+# https://github.com/gleam-lang/gleam/pull/4445
44+55+set -eu
66+77+GLEAM_COMMAND=${GLEAM_COMMAND:-"cargo run --quiet --"}
88+99+g() {
1010+ echo "Running: $GLEAM_COMMAND $@"
1111+ $GLEAM_COMMAND "$@"
1212+}
1313+1414+echo Resetting the build directory to get to a known state
1515+rm -fr build
1616+1717+echo Running publish should not print the warning
1818+output=$(yes "n" | g publish)
1919+if echo "$output" | grep -q "Your package defines multiple top-level modules"; then
2020+ echo "Expected warning to be printed"
2121+ exit 1
2222+fi
2323+2424+echo
2525+echo Success! 💖
2626+echo