hotfix import resolution

This commit is contained in:
hazycora 2023-09-16 23:16:11 -05:00
parent c0000de41a
commit f8516cf23c
No known key found for this signature in database
GPG Key ID: 215AF1F81F86940E
5 changed files with 10 additions and 11 deletions

View File

@ -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": [

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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. */