Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
eliyya committed Jan 13, 2025
1 parent 9142b1b commit ce617cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

# 3.1.1

## Fix

- **log** Fix logs

# 3.1.0

## Features
Expand All @@ -12,7 +18,7 @@ All notable changes to this project will be documented in this file.

## Features

- **export keys** Now you can do `import { localeKeys } from 'type-routes'`
- **export keys** Now you can do `import { localeKeys } from 'type-locales'`

## Breaking Changues

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "type-locales",
"version": "3.1.0",
"version": "3.1.1",
"description": "A simple tool for typing your locales and a util for easy manage of i18n with typescript",
"main": "build/mod.js",
"bin": {
Expand Down Expand Up @@ -44,4 +44,4 @@
"engines": {
"node": ">=20.11"
}
}
}
8 changes: 4 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if (
await import(import.meta.resolve('../package.json'), {
with: { type: 'json' },
}).then(i => {
console.log(`type-routes v${i.default.version}`)
console.log(`type-locales v${i.default.version}`)
})
process.exit(0)
}
Expand Down Expand Up @@ -112,7 +112,7 @@ Options:
OUTPUT_DTS,
})
.then(() => {
if (!QUIET) console.log('[type-routes] Routes typed')
if (!QUIET) console.log('[type-locales] Locales typed')
resolve()
})
.catch(error => {
Expand All @@ -123,7 +123,7 @@ Options:
!QUIET
)
console.error(
`[type-routes] Error: ${INPUT_ROOT} does not exist or is not a directory`,
`[type-locales] Error: ${INPUT_ROOT} does not exist or is not a directory`,
)
if (
(error as Error).message.includes(
Expand Down Expand Up @@ -164,7 +164,7 @@ Options:
)
) {
console.error(
`[type-routes] Error: ${INPUT_ROOT} does not exist or is not a directory`,
`[type-locales] Error: ${INPUT_ROOT} does not exist or is not a directory`,
)
}
}
Expand Down

0 comments on commit ce617cf

Please sign in to comment.