Skip to content

Commit

Permalink
fixed prisma folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
fero1xd committed Jun 18, 2024
1 parent 18064df commit 1b1e891
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# create-sugarcoat-app

## 0.0.5

### Patch Changes

- Fixed prisma folder name

## 0.0.4

### Patch Changes
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-sugarcoat-app",
"version": "0.0.4",
"version": "0.0.5",
"description": "",
"exports": "./dist/bin.js",
"type": "module",
Expand Down Expand Up @@ -44,6 +44,7 @@
"typescript-eslint": "^7.13.1"
},
"dependencies": {
"@changesets/cli": "^2.27.5",
"@clack/prompts": "^0.7.0",
"chalk": "^5.3.0",
"detect-package-manager": "^3.0.2",
Expand Down
11 changes: 7 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ const main = async () => {
renderTitle();
const answers = await runQuestioneer();

// Copies common files
await createProjectDir(answers);

await addDependencies(answers);
try {
// Copies common files
await createProjectDir(answers);

await addDependencies(answers);
} catch (e) {
console.log(e);
}
outro(chalk.hex('#dd2476')('Thank you for using sugarcoat'));
};

Expand Down
2 changes: 1 addition & 1 deletion src/steps/dirs/copyLucia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const copyLucia = async (answers: Answers, absolutePath: string) => {
);
} else {
await fs.copy(
path.join(luciaDir, 'prismaa', `index.ts`),
path.join(luciaDir, 'prisma', `index.ts`),
path.join(remoteAuthDir, 'index.ts')
);
}
Expand Down

0 comments on commit 1b1e891

Please sign in to comment.