update deps & clean out package.json

This commit is contained in:
theofficialomega
2026-04-09 00:02:18 +02:00
parent d85c6564df
commit d943e0c2db
29 changed files with 237 additions and 555 deletions

View File

@@ -5,7 +5,6 @@ import { select, input } from '@inquirer/prompts'
import { generateChannelsXML } from '../../core'
import { Storage } from '@freearhey/storage-js'
import { Channel } from '../../models'
import nodeCleanup from 'node-cleanup'
import * as sdk from '@iptv-org/sdk'
import { Command } from 'commander'
import readline from 'readline'
@@ -42,8 +41,14 @@ const storage = new Storage()
let channelsFromXML = new Collection<Channel>()
main(filepath)
nodeCleanup(() => {
process.on('SIGINT', () => {
save(filepath, channelsFromXML)
process.exit(0)
})
process.on('SIGTERM', () => {
save(filepath, channelsFromXML)
process.exit(0)
})
export default async function main(filepath: string) {