Comparing version 1.0.1 to 1.0.2
@@ -5,12 +5,2 @@ #!/usr/bin/env node | ||
app.run(process.argv).then((res) => { | ||
if(!res) { | ||
return; | ||
} | ||
process.stdout.write(res); | ||
process.stdout.write("\n"); | ||
}).catch((err) => { | ||
process.stderr.write(err.message); | ||
process.stdout.write("\n"); | ||
}); | ||
app.run(); |
@@ -11,3 +11,3 @@ import { Cli } from "@kearisp/cli"; | ||
build(): Promise<void>; | ||
run(): Promise<string | void>; | ||
run(): Promise<void>; | ||
} |
@@ -113,5 +113,15 @@ "use strict"; | ||
async run() { | ||
return this.cli.run(process.argv); | ||
try { | ||
const res = await this.cli.run(process.argv); | ||
if (res) { | ||
process.stdout.write(res); | ||
process.stdout.write("\n"); | ||
} | ||
} | ||
catch (err) { | ||
process.stderr.write(err.message); | ||
process.stdout.write("\n"); | ||
} | ||
} | ||
} | ||
exports.App = App; |
@@ -6,4 +6,4 @@ export declare class Fodec { | ||
transformJson(data: any): Promise<any>; | ||
transformFont(fontPath: string): Promise<string | ArrayBuffer | undefined>; | ||
transformFontV1(fontPath: string): Promise<string | ArrayBuffer | undefined>; | ||
transformFont(fontPath: string): Promise<import("fonteditor-core").FontEditor.FontOutput | undefined>; | ||
transformFontV1(fontPath: string): Promise<import("fonteditor-core").FontEditor.FontOutput | undefined>; | ||
} |
{ | ||
"name": "fodec", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Kris Papercut <krispcut@gmail.com>", | ||
@@ -30,3 +30,3 @@ "description": "Font encoder", | ||
"dependencies": { | ||
"@kearisp/cli": "^2.0.0", | ||
"@kearisp/cli": "^2.0.4", | ||
"@wocker/utils": "^1.0.2", | ||
@@ -38,5 +38,5 @@ "fonteditor-core": "^2.3.2", | ||
"devDependencies": { | ||
"@types/node": "^20.11.5", | ||
"@types/node": "^22.10.2", | ||
"typescript": "^5.3.3" | ||
} | ||
} |
14221
364
Updated@kearisp/cli@^2.0.4