From 9fd38ae1b3ad6afc5b0c1b2acb627b2bed25abda Mon Sep 17 00:00:00 2001 From: Dominic Saadi Date: Wed, 28 Feb 2024 09:52:59 -0800 Subject: [PATCH] style and remove .env for now --- README.md | 2 +- lib/git.ts | 4 ++-- lib/set_cwd.ts | 6 ++---- package.json | 4 ++-- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ad8ab86..95ef3b0 100755 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Release tooling for Redwood. See the [package.json](./package.json) scripts for ## Quick Start -- In either your shell start-up file (e.g. `~/.zshrc` or `~/.bashrc`) or a `.env` file in this directory that you create, add the following environment variable: +- In your shell start-up file (e.g. `~/.zshrc` or `~/.bashrc`), add the following environment variable: ```bash export RWFW_PATH='/path/to/redwoodjs/redwood' diff --git a/lib/git.ts b/lib/git.ts index 6f6310c..abd577f 100755 --- a/lib/git.ts +++ b/lib/git.ts @@ -27,7 +27,7 @@ export async function assertWorkTreeIsClean() { const workTreeIsClean = unwrap(await $`git status -s`) === '' if (!workTreeIsClean) { throw new CustomError( - `The working tree at ${chalk.magenta(process.cwd())} isn't clean. Commit or stash your changes.` + `The working tree at ${chalk.magenta(process.cwd())} isn't clean. Commit or stash your changes` ); } console.log('✨ The working tree is clean') @@ -59,7 +59,7 @@ export async function getRedwoodRemote() { } } - throw new CustomError(`Couldn't find the remote for the Redwood monorepo.`) + throw new CustomError(`Couldn't find the remote for the Redwood monorepo`) } export const commitRegExps = { diff --git a/lib/set_cwd.ts b/lib/set_cwd.ts index e543ca3..f18fba3 100755 --- a/lib/set_cwd.ts +++ b/lib/set_cwd.ts @@ -11,9 +11,7 @@ export async function setCwd() { '', ` ${chalk.green("export RWFW_PATH='/path/to/redwoodjs/redwood'")}`, '', - "You can set it in...", - ` • one of your shell start-up files (e.g. ${chalk.magenta('~/.bashrc')} or ${chalk.magenta('~/.zshrc')})`, - ` • a ${chalk.magenta('.env')} file in this directory`, + `in one of your shell start-up files (e.g. ${chalk.magenta('~/.bashrc')} or ${chalk.magenta('~/.zshrc')})`, ].join('\n')); } try { @@ -24,7 +22,7 @@ export async function setCwd() { '', ` ${chalk.magenta(RWFW_PATH)}`, '', - "but there's nothing at that path." + "but there's nothing at that path" ].join('\n')) } diff --git a/package.json b/package.json index 36744f0..6e1df62 100755 --- a/package.json +++ b/package.json @@ -3,10 +3,10 @@ "license": "MIT", "type": "module", "scripts": { - "release": "tsx --env-file=.env ./release/run.ts", + "release": "tsx ./release/run.ts", "reset-next": "tsx ./scripts/resetNext.ts", "test": "vitest run", - "triage": "tsx --env-file=.env ./triage/run.ts" + "triage": "tsx ./triage/run.ts" }, "devDependencies": { "@tsconfig/recommended": "1.0.3",