Skip to content

Commit

Permalink
Fix macOS onboarding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thedustin committed Feb 4, 2024
1 parent b043d79 commit 337f07b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
registry=https://registry.npmjs.org
auto-install-peers=true
strict-peer-dependencies=false
package-import-method=clone-or-copy
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
dist
cypress/platform/xss3.html
.cache
.pnpm-store
coverage
# Autogenerated by PNPM
pnpm-lock.yaml
Expand All @@ -12,4 +13,4 @@ stats
packages/mermaid/src/config.type.ts
# Ignore the files creates in /demos/dev except for example.html
demos/dev/**
!/demos/dev/example.html
!/demos/dev/example.html
11 changes: 7 additions & 4 deletions run
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
#!/usr/bin/env bash
RUN="docker compose run --rm"

ansi() { echo -e "\e[${1}m${*:2}\e[0m"; }
bold() { ansi 1 "$@"; }
# italic() { ansi 3 "$@"; }
underline() { ansi 4 "$@"; }
# strikethrough() { ansi 9 "$@"; }
# red() { ansi 31 "$@"; }
red() { ansi 31 "$@"; }

name=$(basename $0)
command=$1
Expand Down Expand Up @@ -38,7 +38,7 @@ cypress)
$RUN cypress $args
;;

help)
help|"")

# Alignment of help message must be as it is, it will be nice looking when printed
usage=$(
Expand Down Expand Up @@ -99,7 +99,10 @@ echo -n -e "$usage"
;;

*)
$name help
message="$(red Unknown command: $command). See $(bold ./$name help) for available commands."
echo -n -e "$message\n" >&2
$0 help
exit 1
;;

esac

0 comments on commit 337f07b

Please sign in to comment.