Skip to content

Commit

Permalink
Merge branch 'main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Walker-GM authored Oct 3, 2023
2 parents 528a8fe + 49d41f6 commit 5695062
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion __fixtures__/test-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
"prisma": {
"seed": "yarn rw exec seed"
},
"packageManager": "yarn@3.6.3"
"packageManager": "yarn@3.6.3",
"resolutions": {
"@types/react": "18.2.14"
}
}
10 changes: 6 additions & 4 deletions packages/cli/src/commands/generate/dbAuth/dbAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const ROUTES = [
]

const POST_INSTALL =
`One more thing...\n\n` +
` ${c.warning("Pages created! But you're not done yet:")}\n\n` +
` You'll need to tell your pages where to redirect after a user has logged in,\n` +
` signed up, or reset their password. Look in LoginPage, SignupPage,\n` +
Expand All @@ -48,7 +47,6 @@ const POST_INSTALL =
` Happy authenticating!\n`

const WEBAUTHN_POST_INSTALL =
`One more thing...\n\n` +
` ${c.warning("Pages created! But you're not done yet:")}\n\n` +
" You'll need to tell your pages where to redirect after a user has logged in,\n" +
' signed up, or reset their password. In LoginPage, look for the `REDIRECT`\n' +
Expand Down Expand Up @@ -359,8 +357,10 @@ const tasks = ({
},
{
title: 'One more thing...',
task: (ctx, task) => {
task.title = webauthn ? WEBAUTHN_POST_INSTALL : POST_INSTALL
task: () => {
// This doesn't preserve formatting, so it's been moved to regular
// console.log()s after the tasks have all finished running
// task.title = webauthn ? WEBAUTHN_POST_INSTALL : POST_INSTALL
},
},
],
Expand Down Expand Up @@ -391,6 +391,8 @@ export const handler = async (yargs) => {
prepareForRollback(t)
}
await t.run()
console.log('')
console.log(yargs.webauthn ? WEBAUTHN_POST_INSTALL : POST_INSTALL)
} catch (e) {
console.log(c.error(e.message))
}
Expand Down

0 comments on commit 5695062

Please sign in to comment.