Skip to content

Commit

Permalink
🐛 fix(create): add templates folder to npm, fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ángel Albiñana Espejo authored and Ángel Albiñana Espejo committed Aug 21, 2024
1 parent f18f504 commit ccbaa69
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/create/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
# #############################################################################

!dist
!templates
!package.json
6 changes: 6 additions & 0 deletions packages/create/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# create-backan

## 0.0.8

### Patch Changes

- Add templates folder to npm, fix error messages

## 0.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-backan",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"license": "GPL-3.0",
"homepage": "https://backan.pigeonposse.com",
Expand Down
2 changes: 1 addition & 1 deletion packages/create/src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ await group( {
const inputDir = resolvePath( v )
const existsInput = existsPathSync( inputDir )

if ( existsInput ) return `The project name "${n}" already exists. Please choose a different name.`
if ( existsInput ) return `The project name "${v}" already exists. Please choose a different name.`

},
} )
Expand Down
4 changes: 2 additions & 2 deletions packages/create/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const create = async ( {
}

// if( initcmd ) note( `${initcmd}`, titleInit )

log.step( '' )
outro( `🔥 Let's work with ${green( 'backan' )} 🔥` )
process.exit( 0 )
Expand Down Expand Up @@ -220,7 +220,7 @@ export const create = async ( {

// @ts-ignore
if( debug ) cancel( `Debug error: ${JSON.stringify( error, null, 2 )}` )
else cancel( `Error: ${error.title}\n\n You can debug error with ${italic( '--debug' )} flag\n Or contact with developers in: ${link( bugsUrl )}` )
else cancel( `Error: ${error.title}\n\n You can debug the error with the ${italic( '--debug' )} flag\n Or contact developers at: ${link( bugsUrl )}` )

process.exit( 0 )

Expand Down

0 comments on commit ccbaa69

Please sign in to comment.