Skip to content

Commit

Permalink
fix: no jsr dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Rettend committed Sep 24, 2024
1 parent 9f0d7a8 commit 264b450
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
- run: bun x changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- run: bun x jsr publish
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">lin</h1>
<p align="center">
<code>lin</code> is a CLI tool that translates locale JSON files with GPT (currently).
<code>lin</code> is a CLI tool that translates locale JSON files with GPT (currently).
</p>

[![NPM Version](https://img.shields.io/npm/v/%40yuo-app%2Flin?color=red)](https://www.npmjs.com/package/%40yuo-app%2Flin)
Expand All @@ -11,7 +11,3 @@
```bash
npm i -D @yuo-app/lin
```

```bash
npx jsr add @yuo/lin
```
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

### v0.2.0

- [ ] setup command to add i18n to new projects
- [ ] support a ton of i18n frameworks
- [ ] validate config (like locales, models, etc) with checkArg
- [ ] **`verify`**: reflect on the quality of the translations, check if the translations are accurate
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
},
"dependencies": {
"@clack/prompts": "^0.7.0",
"@cross/deepmerge": "npm:@jsr/cross__deepmerge@^1.0.0",
"citty": "^0.1.6",
"deepmerge": "^4.3.1",
"dotenv": "^16.4.5",
"openai": "^4.63.0",
"picocolors": "^1.1.0",
Expand Down
7 changes: 3 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import type OpenAI from 'openai'
import type { I18nConfig } from './i18n'
import type { DeepRequired } from './types'
import process from 'node:process'
import { simpleMerge } from '@cross/deepmerge'
import c from 'picocolors'
import deepmerge from 'deepmerge'
import { loadConfig } from 'unconfig'
import { catchError, checkArg, console, ICONS } from './utils'
import { catchError, checkArg } from './utils'

type ChatModel = OpenAI.ChatModel
type OpenAIOptions = Partial<Pick<OpenAI.ChatCompletionCreateParamsNonStreaming, 'model'
Expand Down Expand Up @@ -259,7 +258,7 @@ export async function resolveConfig(
})

return {
config: simpleMerge(config, options) as DeepRequired<Config>,
config: deepmerge(config, options) as DeepRequired<Config>,
sources,
dependencies,
}
Expand Down

0 comments on commit 264b450

Please sign in to comment.