Fork of daniellemaywood.uk/gleam — Wasm codegen work
481 B
26 lines
1# SPDX-License-Identifier: Apache-2.0
2# SPDX-FileCopyrightText: 2025 The Gleam contributors
3
4#!/bin/sh
5
6set -eu
7
8GLEAM_COMMAND=${GLEAM_COMMAND:-"cargo run --quiet --"}
9
10g() {
11 echo "Running: $GLEAM_COMMAND $@"
12 $GLEAM_COMMAND "$@"
13}
14
15echo Resetting the build directory to get to a known state
16rm -fr build
17
18echo Running publish should not publish anything
19if yes "n" | g publish; then
20 echo "Expected publish to fail, but it succeeded"
21 exit 1
22fi
23
24echo
25echo Success! 💖
26echo