Skip to content

Commit

Permalink
style and remove .env for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Feb 28, 2024
1 parent 42bcd84 commit 9fd38ae
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions lib/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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 = {
Expand Down
6 changes: 2 additions & 4 deletions lib/set_cwd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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'))
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9fd38ae

Please sign in to comment.