Fix macOS onboarding issues

This commit is contained in:
Dustin Breuer 2024-02-04 18:30:51 +01:00
parent b043d79cc4
commit 337f07b865
3 changed files with 10 additions and 5 deletions

1
.npmrc
View File

@ -1,3 +1,4 @@
registry=https://registry.npmjs.org
auto-install-peers=true
strict-peer-dependencies=false
package-import-method=clone-or-copy

View File

@ -1,6 +1,7 @@
dist
cypress/platform/xss3.html
.cache
.pnpm-store
coverage
# Autogenerated by PNPM
pnpm-lock.yaml
@ -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
run
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
RUN="docker compose run --rm"
ansi() { echo -e "\e[${1}m${*:2}\e[0m"; }
@ -6,7 +6,7 @@ bold() { ansi 1 "$@"; }
# italic() { ansi 3 "$@"; }
underline() { ansi 4 "$@"; }
# strikethrough() { ansi 9 "$@"; }
# red() { ansi 31 "$@"; }
red() { ansi 31 "$@"; }
name=$(basename $0)
command=$1
@ -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=$(
@ -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