migrate catalogs addon to esm structure

This commit is contained in:
TheBeastLT
2023-11-01 14:54:09 +02:00
parent 614c3f4643
commit 0fc5adda6b
10 changed files with 37 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
const { Type } = require('../../addon/lib/types');
import { Type } from '../../addon/lib/types.js';
const genres = [
export const genres = [
'Yesterday',
'This Week',
'Last Week',
@@ -9,7 +9,7 @@ const genres = [
'All Time'
]
function createManifest() {
export function createManifest() {
return {
id: 'com.stremio.torrentio.catalog.addon',
version: '1.0.2',
@@ -52,5 +52,3 @@ function createManifest() {
}
};
}
module.exports = { createManifest, genres };