mirror of
https://git.gay/lucida/lucida
synced 2025-12-11 20:15:14 +01:00
hotfix import resolution
This commit is contained in:
parent
c0000de41a
commit
f8516cf23c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lucida",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "A modular downloader tool",
|
||||
"main": "build/index.js",
|
||||
"type": "module",
|
||||
@ -12,6 +12,10 @@
|
||||
},
|
||||
"exports": {
|
||||
".": "./build/index.js",
|
||||
"./types": {
|
||||
"import": "./build/types.js",
|
||||
"types": "./build/types.d.ts"
|
||||
},
|
||||
"./streamers/*.js": "./build/streamers/*.js"
|
||||
},
|
||||
"files": [
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { Artist, Album, Track } from '../../types.js'
|
||||
import fetch from 'node-fetch'
|
||||
import sizeOf from 'image-size'
|
||||
import { imageSize as sizeOf } from 'image-size'
|
||||
|
||||
async function parseCoverArtwork(url: string) {
|
||||
const resp = await fetch(url)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import Librespot from 'librespot'
|
||||
import { parseArtist, parseAlbum, parseTrack } from './parse.js'
|
||||
import { GetByUrlResponse, SearchResults, StreamerWithLogin } from '../../types.js'
|
||||
import { SpotifyAlbum, SpotifyArtist } from 'librespot/build/utils/types'
|
||||
import { SpotifyAlbum, SpotifyArtist } from 'librespot/types'
|
||||
|
||||
class Spotify implements StreamerWithLogin {
|
||||
client: Librespot
|
||||
|
||||
@ -1,10 +1,5 @@
|
||||
import type {
|
||||
SpotifyAlbum,
|
||||
SpotifyArtist,
|
||||
SpotifyThumbnail,
|
||||
SpotifyTrack
|
||||
} from 'librespot/build/utils/types'
|
||||
import { Album, Artist, Track } from '../../types'
|
||||
import type { SpotifyAlbum, SpotifyArtist, SpotifyThumbnail, SpotifyTrack } from 'librespot/types'
|
||||
import { Album, Artist, Track } from '../../types.js'
|
||||
|
||||
function parseThumbnails(raw: SpotifyThumbnail[]) {
|
||||
return raw
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
/* Modules */
|
||||
"module": "es6" /* Specify what module code is generated. */,
|
||||
// "rootDir": "./", /* Specify the root folder within your source files. */
|
||||
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
||||
"moduleResolution": "node16" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
||||
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
||||
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user