@barbapapazes/video-toolkit 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./config-Cuh3n7mj.mjs";import t from"node:process";import{intro as n,isCancel as r,log as i,outro as a,select as o,spinner as s,text as c}from"@clack/prompts";import{cac as l}from"cac";import{copyFileSync as u,createReadStream as d,existsSync as f,mkdirSync as p,readFileSync as m,readdirSync as h,statSync as g,unlinkSync as _,writeFileSync as v}from"node:fs";import{basename as y,dirname as b,extname as x,isAbsolute as S,join as C,resolve as w}from"node:path";import{Buffer as T}from"node:buffer";import{homedir as ee}from"node:os";import{ofetch as E}from"ofetch";import D from"sharp";import{format as O,parse as k}from"date-fns";import{execSync as A}from"node:child_process";import j from"openai";var M=`0.
|
|
2
|
+
import{t as e}from"./config-Cuh3n7mj.mjs";import t from"node:process";import{intro as n,isCancel as r,log as i,outro as a,select as o,spinner as s,text as c}from"@clack/prompts";import{cac as l}from"cac";import{copyFileSync as u,createReadStream as d,existsSync as f,mkdirSync as p,readFileSync as m,readdirSync as h,statSync as g,unlinkSync as _,writeFileSync as v}from"node:fs";import{basename as y,dirname as b,extname as x,isAbsolute as S,join as C,resolve as w}from"node:path";import{Buffer as T}from"node:buffer";import{homedir as ee}from"node:os";import{ofetch as E}from"ofetch";import D from"sharp";import{format as O,parse as k}from"date-fns";import{execSync as A}from"node:child_process";import j from"openai";var M=`0.13.0`;function N(e){return S(e)?e:w(t.cwd(),e)}function P(e){let t=N(e);if(!f(t))return[];try{return h(t,{withFileTypes:!0}).filter(e=>e.isFile()&&x(e.name).toLowerCase()===`.svg`).map(e=>e.name.replace(/\.svg$/i,``))}catch{return[]}}function F(e,t){return C(N(t),`${e}.svg`)}function I(){let e=C(ee(),`.config`,`video-toolkit`,`fonts`);return f(e)||p(e,{recursive:!0}),e}function te(){let e=I(),n=b(e),r=C(n,`fonts.conf`);f(r)||v(r,`<?xml version="1.0"?>
|
|
3
3
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
|
4
4
|
<fontconfig>
|
|
5
5
|
<dir>${e}</dir>
|
package/package.json
CHANGED