Skip to content

Commit

Permalink
don't copy solid auth trpc stuff unless using trpc
Browse files Browse the repository at this point in the history
  • Loading branch information
OrJDev committed Nov 19, 2022
1 parent 714ce22 commit e371127
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-jd-app",
"version": "1.0.85",
"version": "1.0.86",
"main": "dist/index.js",
"scripts": {
"test": "ts-node -r tsconfig-paths/register src",
Expand Down
20 changes: 12 additions & 8 deletions src/installers/SolidAuth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ const config: IInstaller = (ctx) => ({
path: `${__dirname}/files/handler.txt`,
to: `${ctx.userDir}/src/routes/api/auth/[...solidauth].ts`,
},
{
path: `${__dirname}/files/trpc-utils.txt`,
to: `${ctx.userDir}/src/server/trpc/utils.ts`,
},
{
path: `${__dirname}/files/trpc-router.txt`,
to: `${ctx.userDir}/src/server/trpc/router/example.ts`,
},
...(ctx.installers.includes("tRPC")
? [
{
path: `${__dirname}/files/trpc-utils.txt`,
to: `${ctx.userDir}/src/server/trpc/utils.ts`,
},
{
path: `${__dirname}/files/trpc-router.txt`,
to: `${ctx.userDir}/src/server/trpc/router/example.ts`,
},
]
: []),
],
env: [
{
Expand Down

0 comments on commit e371127

Please sign in to comment.