mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-16 16:47:31 -05:00
hotfix import resolution
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lucida",
|
"name": "lucida",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"description": "A modular downloader tool",
|
"description": "A modular downloader tool",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -12,6 +12,10 @@
|
|||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./build/index.js",
|
".": "./build/index.js",
|
||||||
|
"./types": {
|
||||||
|
"import": "./build/types.js",
|
||||||
|
"types": "./build/types.d.ts"
|
||||||
|
},
|
||||||
"./streamers/*.js": "./build/streamers/*.js"
|
"./streamers/*.js": "./build/streamers/*.js"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Artist, Album, Track } from '../../types.js'
|
import { Artist, Album, Track } from '../../types.js'
|
||||||
import fetch from 'node-fetch'
|
import fetch from 'node-fetch'
|
||||||
import sizeOf from 'image-size'
|
import { imageSize as sizeOf } from 'image-size'
|
||||||
|
|
||||||
async function parseCoverArtwork(url: string) {
|
async function parseCoverArtwork(url: string) {
|
||||||
const resp = await fetch(url)
|
const resp = await fetch(url)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import Librespot from 'librespot'
|
import Librespot from 'librespot'
|
||||||
import { parseArtist, parseAlbum, parseTrack } from './parse.js'
|
import { parseArtist, parseAlbum, parseTrack } from './parse.js'
|
||||||
import { GetByUrlResponse, SearchResults, StreamerWithLogin } from '../../types.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 {
|
class Spotify implements StreamerWithLogin {
|
||||||
client: Librespot
|
client: Librespot
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
import type {
|
import type { SpotifyAlbum, SpotifyArtist, SpotifyThumbnail, SpotifyTrack } from 'librespot/types'
|
||||||
SpotifyAlbum,
|
import { Album, Artist, Track } from '../../types.js'
|
||||||
SpotifyArtist,
|
|
||||||
SpotifyThumbnail,
|
|
||||||
SpotifyTrack
|
|
||||||
} from 'librespot/build/utils/types'
|
|
||||||
import { Album, Artist, Track } from '../../types'
|
|
||||||
|
|
||||||
function parseThumbnails(raw: SpotifyThumbnail[]) {
|
function parseThumbnails(raw: SpotifyThumbnail[]) {
|
||||||
return raw
|
return raw
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
/* Modules */
|
/* Modules */
|
||||||
"module": "es6" /* Specify what module code is generated. */,
|
"module": "es6" /* Specify what module code is generated. */,
|
||||||
// "rootDir": "./", /* Specify the root folder within your source files. */
|
// "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. */
|
// "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. */
|
// "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. */
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||||
|
|||||||
Reference in New Issue
Block a user