Skip to content

Commit 9cd13cb

Browse files
committed
tweak typescript config
1 parent 5a70e92 commit 9cd13cb

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"typescript": "^5.0.2"
2424
},
2525
"engines": {
26-
"node": ">= 18"
26+
"node": ">= 20"
2727
},
2828
"main": "./dist/index.js",
2929
"exports": {

src/Importer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import httpErrors from 'http-errors';
2-
import Client, { type PlaylistItemResource, type PlaylistResource } from './Client';
3-
import { getBestThumbnail, getPlaylistID, getVideos, type UwMedia } from './util';
2+
import Client, { type PlaylistItemResource, type PlaylistResource } from './Client.js';
3+
import { getBestThumbnail, getPlaylistID, getVideos, type UwMedia } from './util.js';
44

55
const { BadRequest, NotFound } = httpErrors;
66

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import httpErrors from 'http-errors';
2-
import YouTubeClient, { type SearchOptions, type SearchResultResource } from './Client';
3-
import Importer from './Importer';
4-
import { getVideos, getYouTubeID, parseMediaTitle, type UwMedia } from './util';
2+
import YouTubeClient, { type SearchOptions, type SearchResultResource } from './Client.js';
3+
import Importer from './Importer.js';
4+
import { getVideos, getYouTubeID, parseMediaTitle, type UwMedia } from './util.js';
55

66
const { BadRequest } = httpErrors;
77

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import getArtistTitle from 'get-artist-title';
22
import getYouTubeChapters from 'get-youtube-chapters';
33
import parseIsoDuration from 'parse-iso-duration';
4-
import Client, { type Thumbnails, type VideoResource } from './Client';
4+
import Client, { type Thumbnails, type VideoResource } from './Client.js';
55

66
const rxSimplePlaylistUrl = /youtube\.com\/(?:playlist|watch)\?.*?list=([a-z0-9_-]+)/i;
77
const rxPlaylistID = /^([a-z0-9_-]+)$/i;

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"compilerOptions": {
33
"strict": true,
44
"noUncheckedIndexedAccess": true,
5-
"module": "es2020",
6-
"target": "es2020",
5+
"module": "nodenext",
6+
"target": "es2022",
77
"declaration": true,
88
"newLine": "lf",
9-
"moduleResolution": "node",
9+
"moduleResolution": "node16",
1010
"verbatimModuleSyntax": true,
1111
"resolveJsonModule": true,
1212
"allowSyntheticDefaultImports": true,

0 commit comments

Comments
 (0)