Skip to content

Commit

Permalink
Merge pull request #32 from OllieJT/lucia-fixes
Browse files Browse the repository at this point in the history
fix(auth): Lucia fixes
  • Loading branch information
OllieJT authored Jul 7, 2024
2 parents b55198c + 7165f7b commit 53072f3
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-dingos-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-sva": patch
---

fix drizzle config schema path
5 changes: 5 additions & 0 deletions .changeset/spotty-houses-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-sva": patch
---

Fixes lucia installer - missing file
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ coverage
.DS_Store
*.pem
dist/
package-lock.json
yarn.lock

# debug
npm-debug.log*
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,9 @@ bun create sva@latest
[contribute-url]: https://github.com/olliejt/create-sva/blob/main/CONTRIBUTING.md
[contribute-image]: https://img.shields.io/badge/PRs-welcome-blue.svg
[github-image]: https://img.shields.io/github/stars/olliejt/create-sva

<a href="https://github.com/olliejt/create-sva/graphs/contributors">
<img src="https://contrib.rocks/image?repo=olliejt/create-sva" />
</a>

Made with [contrib.rocks](https://contrib.rocks).
6 changes: 6 additions & 0 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,9 @@ bun create sva@latest
[contribute-url]: https://github.com/olliejt/create-sva/blob/main/CONTRIBUTING.md
[contribute-image]: https://img.shields.io/badge/PRs-welcome-blue.svg
[github-image]: https://img.shields.io/github/stars/olliejt/create-sva

<a href="https://github.com/olliejt/create-sva/graphs/contributors">
<img src="https://contrib.rocks/image?repo=olliejt/create-sva" />
</a>

Made with [contrib.rocks](https://contrib.rocks).
4 changes: 4 additions & 0 deletions cli/src/installers/installer.lucia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export const lucia_installer: Installer = ({ project_dir, database_solution }) =
const auth_oauth_provider_dest = path.join(auth_dir, "oauth.ts");
fs.copySync(auth_oauth_provider_src, auth_oauth_provider_dest, { overwrite: true });

const auth_oauth_github_src = path.join(template_dir, `lib/oauth.github.ts`);
const auth_oauth_github_dest = path.join(auth_dir, "oauth.github.ts");
fs.copySync(auth_oauth_github_src, auth_oauth_github_dest, { overwrite: true });

const auth_use_oauth_src = path.join(template_dir, `lib/use-oauth.ts`);
const auth_use_oauth_dest = path.join(auth_dir, "use-oauth.ts");
fs.copySync(auth_use_oauth_src, auth_use_oauth_dest, { overwrite: true });
Expand Down

0 comments on commit 53072f3

Please sign in to comment.