mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:39:41 -08:00
12 lines
319 B
JavaScript
12 lines
319 B
JavaScript
import process from 'node:process'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { createPlugin } from './cli.ts'
|
|
|
|
try {
|
|
createPlugin(fileURLToPath(new URL('../../', import.meta.url)), process.argv.slice(2))
|
|
}
|
|
catch (error) {
|
|
console.error(error instanceof Error ? error.message : error)
|
|
process.exitCode = 1
|
|
}
|