From 541e8741e823550a37063a260ef8cfb4cca37bf8 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Thu, 26 Oct 2023 20:32:22 +1300 Subject: [PATCH] Replace/Remove all references to yarn -> npm --- README.md | 6 +++--- deploy.sh | 2 +- watch-lint.sh | 9 --------- watch-tsc.sh | 9 --------- 4 files changed, 4 insertions(+), 22 deletions(-) delete mode 100755 watch-lint.sh delete mode 100755 watch-tsc.sh diff --git a/README.md b/README.md index 51eb677..c219d40 100644 --- a/README.md +++ b/README.md @@ -47,19 +47,19 @@ The apk file can be found at `android/app/build/outputs/apk/release/app-release. First ensure Node.js dependencies are installed: ``` -yarn install +npm install ``` Then start the metro server: ``` -yarn start +npm start ``` Then (in a separate terminal) run the `android` script: ``` -yarn android +npm run android ``` # Fdroid Metadata diff --git a/deploy.sh b/deploy.sh index e789a6a..66fd1d0 100755 --- a/deploy.sh +++ b/deploy.sh @@ -24,7 +24,7 @@ sed -i "s/\(^\s*\)versionName \"[0-9]*.[0-9]*\"$/\1versionName \"$major.$minor\" sed -i "s/\"version\": \"[0-9]*.[0-9]*\"/\"version\": \"$major.$minor\"/" ../package.json if [ "$1" != "-n" ]; then - yarn tsc + npx tsc ./gradlew bundleRelease bundle install bundle exec fastlane supply --aab app/build/outputs/bundle/release/app-release.aab diff --git a/watch-lint.sh b/watch-lint.sh deleted file mode 100755 index e5f0536..0000000 --- a/watch-lint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -ls *.ts* | entr yarn lint | tee >( - while read ln; do - if echo "${ln}" | grep -q "error"; then - notify-send "${ln}" - fi - done -) diff --git a/watch-tsc.sh b/watch-tsc.sh deleted file mode 100755 index 092687e..0000000 --- a/watch-tsc.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -yarn tsc --watch --preserveWatchOutput | tee >( - while read ln; do - if echo "${ln}" | grep -q "Found [^0][0-9]* error"; then - notify-send "${ln}" - fi - done -)