mediacript 1.0.1 → 1.0.2

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/cli.mjs +6 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # FFmpeg Simple Converter
1
+ # Mediacript
2
2
 
3
3
  Powerful and flexible CLI for converting videos/audio and AI transcription, working on Linux, Mac, and Windows.
4
4
 
package/cli.mjs CHANGED
@@ -3,11 +3,16 @@
3
3
  // Importa e executa o CLI compilado
4
4
  import { fileURLToPath } from 'url'
5
5
  import { dirname, join } from 'path'
6
+ import { pathToFileURL } from 'url'
6
7
 
7
8
  const __filename = fileURLToPath(import.meta.url)
8
9
  const __dirname = dirname(__filename)
9
10
 
10
- import(join(__dirname, 'dist', 'index.js')).catch((error) => {
11
+ // Converte o caminho para URL file:// (necessário no Windows)
12
+ const indexPath = join(__dirname, 'dist', 'index.js')
13
+ const indexURL = pathToFileURL(indexPath).href
14
+
15
+ import(indexURL).catch((error) => {
11
16
  console.error('Error loading CLI:', error)
12
17
  process.exit(1)
13
18
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacript",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "CLI to convert media files to performat formats and extract text using Groq and OpenAI's Whisper API",
5
5
  "type": "module",
6
6
  "bin": {