Skip to content

Commit 6aef9fa

Browse files
committed
feat: v2.0.0 - Major version upgrade
- Updated to version 2.0.0 - Enhanced UI components and conversion logic - Improved error handling and user experience
1 parent dd5aae6 commit 6aef9fa

File tree

9 files changed

+48
-358
lines changed

9 files changed

+48
-358
lines changed

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
{
22
"name": "effect-audio",
3-
"version": "1.0.8",
3+
"version": "2.0.0",
44
"description": "High-performance M4A to MP3 converter built with Effect and TypeScript",
5-
"main": "dist/index.js",
5+
"main": "dist/cli-ink.js",
66
"type": "module",
77
"bin": {
8-
"effect-audio": "./dist/index.js",
9-
"effect-audio-rich": "./dist/cli-ink.js"
8+
"effect-audio": "./dist/cli-ink.js"
109
},
1110
"scripts": {
1211
"build": "tsc",
13-
"dev": "tsx src/index.ts",
14-
"dev:rich": "tsx src/cli-ink.ts",
15-
"start": "node dist/index.js",
16-
"start:rich": "node dist/cli-ink.js",
12+
"dev": "tsx src/cli-ink.ts",
13+
"start": "node dist/cli-ink.js",
1714
"lint": "biome check .",
1815
"format": "biome format --write .",
1916
"format:check": "biome format .",

src/cli-ink.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const processMultipleInputsWithInk = (
104104
}
105105

106106
// ヘルプオプションが含まれている場合は何もしない
107-
if (inputPaths.some(path => path.startsWith('--'))) {
107+
if (inputPaths.some((path) => path.startsWith('--'))) {
108108
return;
109109
}
110110

@@ -139,7 +139,7 @@ const processMultipleInputsWithInk = (
139139
}
140140

141141
// ファイルリストを初期化
142-
const initialFiles = allM4aFiles.map(filePath => ({
142+
const initialFiles = allM4aFiles.map((filePath) => ({
143143
path: path.relative(process.cwd(), filePath),
144144
status: 'pending' as const,
145145
}));
@@ -177,23 +177,27 @@ const processMultipleInputsWithInk = (
177177

178178
return Effect.gen(function* () {
179179
const displayPath = path.relative(process.cwd(), inputFilePath);
180-
180+
181181
// ファイル処理開始を通知
182182
if (global.updateFileStatus) {
183183
global.updateFileStatus(displayPath, 'processing', undefined);
184184
}
185185

186186
try {
187187
yield* convertM4aToMp3(conversionOptions);
188-
188+
189189
// ファイル処理完了を通知
190190
if (global.updateFileStatus) {
191191
global.updateFileStatus(displayPath, 'completed', undefined);
192192
}
193193
} catch (error) {
194194
// ファイル処理エラーを通知
195195
if (global.updateFileStatus) {
196-
global.updateFileStatus(displayPath, 'error', error instanceof Error ? error.message : 'Unknown error');
196+
global.updateFileStatus(
197+
displayPath,
198+
'error',
199+
error instanceof Error ? error.message : 'Unknown error'
200+
);
197201
}
198202
throw error;
199203
}
@@ -202,10 +206,10 @@ const processMultipleInputsWithInk = (
202206

203207
// 全ての変換を並列実行
204208
const concurrency = validatedArgs.jobs || 10;
205-
209+
206210
try {
207211
yield* Effect.all(conversionTasks, { concurrency });
208-
212+
209213
// 全ての変換が完了したら少し待ってから終了
210214
yield* Effect.sleep('2 seconds');
211215
} catch (error) {

src/cli.ts

Lines changed: 0 additions & 291 deletions
This file was deleted.

src/index.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)