guessit-js 3.8.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -83
- package/dist/api.d.ts +3 -3
- package/dist/guessit-js.cjs +3236 -169
- package/dist/guessit-js.cjs.map +1 -1
- package/dist/guessit-js.js +3236 -169
- package/dist/guessit-js.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/rules/common/diacritics.d.ts +1 -0
- package/dist/rules/common/formatters.d.ts +13 -0
- package/dist/rules/properties/imdb.d.ts +3 -0
- package/dist/rules/properties/title.d.ts +0 -3
- package/dist/rules/properties/volume.d.ts +3 -0
- package/dist/schema.d.ts +75 -0
- package/package.json +7 -3
- package/dist/index.html +0 -675
- package/dist/openapi.json +0 -617
- package/dist/wasm-test.html +0 -467
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
* // => { title: 'The Dark Knight', year: 2008, screen_size: '1080p', source: 'Blu-ray', video_codec: 'H.264', release_group: 'GROUP', container: 'mkv', mimetype: 'video/x-matroska', type: 'movie' }
|
|
9
9
|
*/
|
|
10
10
|
export { guessit, properties, configure, reset, defaultApi, GuessItApi, GuessItException } from './api.js';
|
|
11
|
-
export
|
|
11
|
+
export { GUESSIT_SCHEMA } from './schema.js';
|
|
12
|
+
export type { GuessItResult, GuessitLanguage, PropertySchema } from './schema.js';
|
|
12
13
|
export { parseOptions, loadConfig, mergeOptions } from './options.js';
|
|
13
14
|
export type { GuessItOptions, RawOptions } from './options.js';
|
|
14
15
|
export { rebulkBuilder } from './rules/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DIACRITIC_FOLD: Record<string, string>;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strip diacritics from a string, reproducing V8's
|
|
3
|
+
* s.normalize('NFD').replace(/[̀-ͯ]/g, '')
|
|
4
|
+
* for every accented letter in every script (Latin, Greek, Cyrillic, Vietnamese,
|
|
5
|
+
* …) WITHOUT calling `String.prototype.normalize` — QuickJS (the runtime Javy
|
|
6
|
+
* compiles to WASM) doesn't implement `normalize` at all, so relying on it would
|
|
7
|
+
* make the WASM build diverge from the JS build on any accented title (e.g.
|
|
8
|
+
* "Hôtel", "Rêves", "Ολυμπιάδα"). The folding table in `./diacritics.ts` is
|
|
9
|
+
* generated from V8's NFD (scripts/gen-diacritics.mjs), so both engines fold
|
|
10
|
+
* identically. The trailing regex also removes any already-decomposed standalone
|
|
11
|
+
* combining marks (U+0300–U+036F), which works in both engines.
|
|
12
|
+
*/
|
|
13
|
+
export declare function foldDiacritics(input: string): string;
|
|
1
14
|
/**
|
|
2
15
|
* Remove and strip separators from inputString (but keep ',;' characters).
|
|
3
16
|
* Also keeps separators for single characters (e.g., S.H.I.E.L.D.).
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/** A detected language or country, as guessit renders it. */
|
|
2
|
+
export interface GuessitLanguage {
|
|
3
|
+
name?: string;
|
|
4
|
+
alpha3?: string;
|
|
5
|
+
alpha2?: string;
|
|
6
|
+
country?: string | null;
|
|
7
|
+
script?: string | null;
|
|
8
|
+
}
|
|
9
|
+
/** Machine-readable description of every property guessit-js can emit. */
|
|
10
|
+
export interface PropertySchema {
|
|
11
|
+
/** JSON-ish base type(s) of the value. */
|
|
12
|
+
type: Array<'string' | 'number' | 'boolean' | 'Language' | 'object'>;
|
|
13
|
+
/** True if this property can be emitted as an array (multiple values). */
|
|
14
|
+
array: boolean;
|
|
15
|
+
/** True if this property can be emitted as a single scalar. */
|
|
16
|
+
scalar: boolean;
|
|
17
|
+
/** Closed vocabulary of allowed values, when the property is value-constrained. */
|
|
18
|
+
enum?: Array<string | number>;
|
|
19
|
+
}
|
|
20
|
+
export declare const GUESSIT_SCHEMA: Record<string, PropertySchema>;
|
|
21
|
+
/** Fully-typed guessit-js result. Every key is optional (presence depends on the input). */
|
|
22
|
+
export interface GuessItResult {
|
|
23
|
+
absolute_episode?: number | (number)[];
|
|
24
|
+
alternative_title?: string | (string)[];
|
|
25
|
+
another?: string;
|
|
26
|
+
aspect_ratio?: number;
|
|
27
|
+
audio_bit_rate?: string;
|
|
28
|
+
audio_channels?: "1.0" | "1ch" | "2.0" | "20" | "2ch" | "5.1" | "5ch" | "6ch" | "7.1" | "7ch" | "8ch" | "mono" | "stereo" | ("1.0" | "1ch" | "2.0" | "20" | "2ch" | "5.1" | "5ch" | "6ch" | "7.1" | "7ch" | "8ch" | "mono" | "stereo")[];
|
|
29
|
+
audio_codec?: "AAC" | "Atmos" | "DD+" | "DDP" | "Dolby" | "Dolby Atmos" | "Dolby Digital" | "Dolby Digital Plus" | "Dolby TrueHD" | "DolbyDigital" | "DTS" | "DTS-HD" | "DTS-X" | "DTS:X" | "DTSX" | "Flac" | "FLAC" | "LAME" | "LPCM" | "MP2" | "MP3" | "Opus" | "PCM" | "Vorbis" | ("AAC" | "Atmos" | "DD+" | "DDP" | "Dolby" | "Dolby Atmos" | "Dolby Digital" | "Dolby Digital Plus" | "Dolby TrueHD" | "DolbyDigital" | "DTS" | "DTS-HD" | "DTS-X" | "DTS:X" | "DTSX" | "Flac" | "FLAC" | "LAME" | "LPCM" | "MP2" | "MP3" | "Opus" | "PCM" | "Vorbis")[];
|
|
30
|
+
audio_profile?: "ES" | "EX" | "Extended Surround" | "HE" | "High Efficiency" | "High Quality" | "High Resolution Audio" | "HQ" | "HR" | "HRA" | "LC" | "Low Complexity" | "MA" | "Master Audio" | ("ES" | "EX" | "Extended Surround" | "HE" | "High Efficiency" | "High Quality" | "High Resolution Audio" | "HQ" | "HR" | "HRA" | "LC" | "Low Complexity" | "MA" | "Master Audio")[];
|
|
31
|
+
bonus?: number;
|
|
32
|
+
bonus_title?: string;
|
|
33
|
+
cd?: number;
|
|
34
|
+
cd_count?: number;
|
|
35
|
+
color_depth?: "10-bit" | "12-bit" | "8-bit";
|
|
36
|
+
container?: "3g2" | "3gp" | "3gp2" | "7z" | "ace" | "arj" | "asf" | "avi" | "bmp" | "bz2" | "cb7" | "cbr" | "cbz" | "divx" | "flv" | "gif" | "gz" | "idx" | "iso" | "jpeg" | "jpg" | "m2ts" | "m4v" | "mk2" | "mk3d" | "mka" | "mkv" | "MKV" | "mov" | "mp4" | "mp4a" | "mpeg" | "mpg" | "nfo" | "nzb" | "ogg" | "ogm" | "ogv" | "png" | "qt" | "r00" | "ra" | "ram" | "rar" | "rm" | "srt" | "ssa" | "tar" | "tbn" | "tgz" | "torrent" | "ts" | "vob" | "wav" | "webm" | "webp" | "wma" | "wmv" | "zip" | ("3g2" | "3gp" | "3gp2" | "7z" | "ace" | "arj" | "asf" | "avi" | "bmp" | "bz2" | "cb7" | "cbr" | "cbz" | "divx" | "flv" | "gif" | "gz" | "idx" | "iso" | "jpeg" | "jpg" | "m2ts" | "m4v" | "mk2" | "mk3d" | "mka" | "mkv" | "MKV" | "mov" | "mp4" | "mp4a" | "mpeg" | "mpg" | "nfo" | "nzb" | "ogg" | "ogm" | "ogv" | "png" | "qt" | "r00" | "ra" | "ram" | "rar" | "rm" | "srt" | "ssa" | "tar" | "tbn" | "tgz" | "torrent" | "ts" | "vob" | "wav" | "webm" | "webp" | "wma" | "wmv" | "zip")[];
|
|
37
|
+
country?: string | GuessitLanguage;
|
|
38
|
+
crc32?: string;
|
|
39
|
+
date?: string | Date;
|
|
40
|
+
disc?: number | (number)[];
|
|
41
|
+
edition?: "Alternative Cut" | "CC" | "collector" | "Collector" | "Criterion" | "DC" | "ddc" | "deluxe" | "Deluxe" | "Director's Cut" | "Director's Definitive Cut" | "extended" | "Extended" | "Fan" | "Festival" | "imax" | "IMAX" | "limited" | "Limited" | "Remastered" | "Restored" | "se" | "Special" | "theatrical" | "Theatrical" | "Ultimate" | "Uncensored" | "Uncut" | "Unrated" | ("Alternative Cut" | "CC" | "collector" | "Collector" | "Criterion" | "DC" | "ddc" | "deluxe" | "Deluxe" | "Director's Cut" | "Director's Definitive Cut" | "extended" | "Extended" | "Fan" | "Festival" | "imax" | "IMAX" | "limited" | "Limited" | "Remastered" | "Restored" | "se" | "Special" | "theatrical" | "Theatrical" | "Ultimate" | "Uncensored" | "Uncut" | "Unrated")[];
|
|
42
|
+
episode?: number | (number)[];
|
|
43
|
+
episode_count?: number;
|
|
44
|
+
episode_details?: string | (string)[];
|
|
45
|
+
episode_format?: "Minisode";
|
|
46
|
+
episode_title?: string | (string)[];
|
|
47
|
+
film?: number;
|
|
48
|
+
film_title?: string;
|
|
49
|
+
frame_rate?: string;
|
|
50
|
+
language?: string | GuessitLanguage | (string | GuessitLanguage)[];
|
|
51
|
+
mimetype?: "application/x-bittorrent" | "application/x-iso9660-image" | "application/x-rar-compressed" | "application/zip" | "image/gif" | "image/jpeg" | "image/png" | "text/plain" | "video/mp2t" | "video/mp4" | "video/webm" | "video/x-matroska" | "video/x-msvideo";
|
|
52
|
+
other?: "2in1" | "3D" | "asrequested" | "Audio Fixed" | "Banner" | "Bonus" | "BT.2020" | "Classic" | "Clear Art" | "Clear Logo" | "Colorized" | "Complet" | "Complete" | "CONVERT" | "Converted" | "Cover" | "Dirfix" | "Disc Art" | "DOCU" | "Documentary" | "DOKU" | "Dolby Vision" | "Dual" | "Dual Audio" | "East Coast Feed" | "Ending Credits" | "Extras" | "Fan Subtitled" | "Fanart" | "Fansub" | "Fast Subtitled" | "Fastsub" | "FHD" | "Fix" | "Fixed" | "Full HD" | "Half OU" | "Half SBS" | "Hardcoded Subtitles" | "HC" | "HD" | "HDLight" | "HDR10" | "HFR" | "High Frame Rate" | "High Quality" | "High Resolution" | "HQ" | "HR" | "Hybrid" | "Internal" | "Landscape" | "LD" | "LDTV" | "LiNE" | "Line Audio" | "Line Dubbed" | "Logo" | "Low Definition" | "MD" | "mHD" | "Mic Dubbed" | "Micro HD" | "Mux" | "Nfofix" | "NTSC" | "Oad" | "OAR" | "Oav" | "Obfuscated" | "Ona" | "Open Matte" | "Opening Credits" | "Original Animated Video" | "Original Animation DVD" | "Original Aspect Ratio" | "Original Net Animation" | "Original Video" | "OV" | "Ova" | "PAL" | "postbot" | "Poster" | "Preair" | "Proof" | "Prooffix" | "Proper" | "PS Vita" | "R5" | "RC" | "Read NFO" | "Real" | "Reencoded" | "Region 5" | "Region C" | "Remux" | "Repost" | "Retail" | "Rip" | "Sample" | "Scrambled" | "Screener" | "SDR" | "SECAM" | "Standard Dynamic Range" | "Straight to Video" | "STV" | "Sync Fixed" | "Thumbnail" | "Trailer" | "UHD" | "Ultra HD" | "Upscaled" | "Variable Frame Rate" | "VFR" | "Virtual Reality" | "Vita" | "VO" | "vost" | "West Coast Feed" | "Widescreen" | "ws" | "xpost" | "XXX" | ("2in1" | "3D" | "asrequested" | "Audio Fixed" | "Banner" | "Bonus" | "BT.2020" | "Classic" | "Clear Art" | "Clear Logo" | "Colorized" | "Complet" | "Complete" | "CONVERT" | "Converted" | "Cover" | "Dirfix" | "Disc Art" | "DOCU" | "Documentary" | "DOKU" | "Dolby Vision" | "Dual" | "Dual Audio" | "East Coast Feed" | "Ending Credits" | "Extras" | "Fan Subtitled" | "Fanart" | "Fansub" | "Fast Subtitled" | "Fastsub" | "FHD" | "Fix" | "Fixed" | "Full HD" | "Half OU" | "Half SBS" | "Hardcoded Subtitles" | "HC" | "HD" | "HDLight" | "HDR10" | "HFR" | "High Frame Rate" | "High Quality" | "High Resolution" | "HQ" | "HR" | "Hybrid" | "Internal" | "Landscape" | "LD" | "LDTV" | "LiNE" | "Line Audio" | "Line Dubbed" | "Logo" | "Low Definition" | "MD" | "mHD" | "Mic Dubbed" | "Micro HD" | "Mux" | "Nfofix" | "NTSC" | "Oad" | "OAR" | "Oav" | "Obfuscated" | "Ona" | "Open Matte" | "Opening Credits" | "Original Animated Video" | "Original Animation DVD" | "Original Aspect Ratio" | "Original Net Animation" | "Original Video" | "OV" | "Ova" | "PAL" | "postbot" | "Poster" | "Preair" | "Proof" | "Prooffix" | "Proper" | "PS Vita" | "R5" | "RC" | "Read NFO" | "Real" | "Reencoded" | "Region 5" | "Region C" | "Remux" | "Repost" | "Retail" | "Rip" | "Sample" | "Scrambled" | "Screener" | "SDR" | "SECAM" | "Standard Dynamic Range" | "Straight to Video" | "STV" | "Sync Fixed" | "Thumbnail" | "Trailer" | "UHD" | "Ultra HD" | "Upscaled" | "Variable Frame Rate" | "VFR" | "Virtual Reality" | "Vita" | "VO" | "vost" | "West Coast Feed" | "Widescreen" | "ws" | "xpost" | "XXX")[];
|
|
53
|
+
part?: number | (number)[];
|
|
54
|
+
proper_count?: number;
|
|
55
|
+
release_group?: string;
|
|
56
|
+
screen_size?: "1080i" | "1080p" | "1440p" | "1444x866" | "2160p" | "360p" | "368p" | "480p" | "4k" | "540p" | "576p" | "720p" | "720x432" | "960x544";
|
|
57
|
+
season?: number | (number)[];
|
|
58
|
+
season_count?: number;
|
|
59
|
+
size?: string;
|
|
60
|
+
source?: "Analog HDTV" | "Blu-ray" | "Camera" | "Digital Master" | "Digital TV" | "DVD" | "HD Camera" | "HD Telecine" | "HD Telesync" | "HD-DVD" | "HDTV" | "Pay-per-view" | "Satellite" | "Telecine" | "Telesync" | "TV" | "Ultra HD Blu-ray" | "Ultra HDTV" | "VHS" | "Video on Demand" | "Web" | "Workprint";
|
|
61
|
+
streaming_service?: "4OD" | "9Now" | "9NOW" | "A&E" | "ABC" | "ABC Australia" | "Adult Swim" | "AE" | "AJAZ" | "Al Jazeera English" | "ALL4" | "Amazon" | "Amazon Prime" | "AMBC" | "AMC" | "America's Test Kitchen" | "AMZN" | "AMZN-CBR" | "Animal Planet" | "AnimeLab" | "ANLB" | "ANPL" | "AOL" | "AppleTV" | "APTV" | "ARD" | "AS" | "ATK" | "ATV+" | "ATVP" | "AUBC" | "BBC iPlayer" | "Binge" | "BKPL" | "Blackpills" | "BLU" | "BluTV" | "BNGE" | "BOOM" | "Boomerang" | "BRAV" | "BravoTV" | "Canal+" | "Cartoon Network" | "CBC" | "CBS" | "CC" | "CCGC" | "Channel 4" | "CHGD" | "CHRGD" | "Cinemax" | "CMAX" | "CMT" | "CN" | "CNBC" | "CNLP" | "Comedians in Cars Getting Coffee" | "Comedy Central" | "Country Music Television" | "CR" | "Crackle" | "CRAV" | "Crave" | "CRKL" | "Crunchy Roll" | "CSpan" | "CSPN" | "CTV" | "CUR" | "CuriosityStream" | "CW" | "CWS" | "CWSeed" | "Daisuki" | "DC Universe" | "DCU" | "DDY" | "Deadhouse Films" | "DF" | "DHF" | "Digiturk Diledigin Yerde" | "DISC" | "Discovery" | "Discovery Plus" | "Disney" | "Disney+" | "DIY" | "DIY Network" | "Doc Club" | "DOCC" | "DPlay" | "DPLY" | "DramaFever" | "DSCP" | "DSKI" | "DSNP" | "DSNY" | "E!" | "El Trece" | "ePix" | "EPIX" | "ESPN" | "ESQ" | "Esquire" | "ETTV" | "ETV" | "Facebook Watch" | "FAM" | "Family" | "Family Jr" | "Fandor" | "FANDOR" | "FBWatch" | "FJR" | "FOOD" | "Food Network" | "Fox" | "FOX" | "Fox Premium" | "FOXP" | "Foxtel" | "FP" | "FREE" | "Freeform" | "FXTL" | "FYI" | "FYI Network" | "Gaga" | "GagaOOLala" | "GC" | "GLBL" | "GLOB" | "Global" | "GloboSat Play" | "Hallmark" | "HBO" | "HBO Go" | "HBO Max" | "HGTV" | "HIST" | "History" | "HLMK" | "HMAX" | "hoichoi" | "HoiChoi" | "Hulu" | "HULU" | "ID" | "IFC" | "iflix" | "IFX" | "INA" | "Investigation Discovery" | "iP" | "iQIYI" | "iT" | "iTunes" | "ITV" | "KNOW" | "Knowledge Network" | "LIFE" | "Lifetime" | "MBC" | "MBCVOD" | "MNBC" | "Motor Trend OnDemand" | "MSNBC" | "MTOD" | "MTV" | "MUBI" | "NATG" | "National Audiovisual Institute" | "National Film Board" | "National Geographic" | "NBA" | "NBA TV" | "NBC" | "Netflix" | "NF" | "NFB" | "NFL" | "NFL Now" | "NFLN" | "NHL GameCenter" | "NICK" | "NICKAPP" | "Nickelodeon" | "Norsk Rikskringkasting" | "NRK" | "ODK" | "OnDemandKorea" | "Oprah Winfrey Network" | "Opto" | "OPTO" | "OWN" | "Paramount+" | "ParamountPlus" | "PBS" | "PBS Kids" | "PBSK" | "PCOK" | "Peacock" | "Playstation Network" | "PLUZ" | "Pluzz" | "PMNP" | "PMT+" | "PMTP" | "POGO" | "PokerGO" | "PSN" | "Rakuten TV" | "RED" | "RKTN" | "ROKU" | "RTE" | "RTE One" | "RUUTU" | "SBS" | "SCI" | "Science Channel" | "SeeSo" | "SESO" | "SHMI" | "SHO" | "Shomi" | "Showtime" | "SNET" | "Sony" | "SONY" | "SPIK" | "Spike" | "Spike TV" | "SPKE" | "Sportsnet" | "Sprout" | "SPRT" | "Stan" | "STAN" | "Starz" | "STZ" | "Sveriges Television" | "SVT" | "SwearNet" | "SWER" | "Syfy" | "SYFY" | "TBS" | "TFou" | "TFOU" | "The CW" | "The Roku Channel" | "TLC" | "TUBI" | "TubiTV" | "TV Land" | "TV3" | "TV3 Ireland" | "TV4" | "TV4 Sweeden" | "TVING" | "TVL" | "TVNZ" | "UFC" | "UFC Fight Pass" | "UKTV" | "UNIV" | "Univision" | "USA Network" | "USAN" | "Velocity" | "VH1" | "VICE" | "Viceland" | "Viki" | "VIKI" | "Vimeo" | "VLCT" | "VMEO" | "VRV" | "W Network" | "WatchMe" | "WME" | "WNET" | "WWE Network" | "WWEN" | "XBOX" | "Xbox Video" | "Yahoo" | "YHOO" | "YouTube Red" | "ZDF";
|
|
62
|
+
subtitle_language?: string | GuessitLanguage | (string | GuessitLanguage)[];
|
|
63
|
+
title?: string;
|
|
64
|
+
type?: "episode" | "movie";
|
|
65
|
+
uuid?: string;
|
|
66
|
+
version?: number;
|
|
67
|
+
video_api?: "DXVA";
|
|
68
|
+
video_bit_rate?: string;
|
|
69
|
+
video_codec?: "DivX" | "DVDivX" | "H.263" | "H.264" | "H.265" | "MPEG-2" | "RealVideo" | "VC-1" | "VP7" | "VP8" | "VP80" | "VP9" | "Xvid" | "XviD";
|
|
70
|
+
video_profile?: "Advanced Video Codec High Definition" | "Baseline" | "BP" | "EP" | "Extended" | "HEVC" | "High" | "High 10" | "High 4:2:2" | "High 4:4:4 Predictive" | "High Efficiency Video Coding" | "HiP" | "HP" | "Main" | "MP" | "SC" | "Scalable Video Coding" | "SVC" | "XP" | ("Advanced Video Codec High Definition" | "Baseline" | "BP" | "EP" | "Extended" | "HEVC" | "High" | "High 10" | "High 4:2:2" | "High 4:4:4 Predictive" | "High Efficiency Video Coding" | "HiP" | "HP" | "Main" | "MP" | "SC" | "Scalable Video Coding" | "SVC" | "XP")[];
|
|
71
|
+
website?: string;
|
|
72
|
+
year?: number;
|
|
73
|
+
/** Any future / custom property. */
|
|
74
|
+
[key: string]: unknown;
|
|
75
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "guessit-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Extract metadata (title, year, season, episode, codec, language, etc.) from media filenames — TypeScript port of Python guessit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"guessit",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"homepage": "https://opensubtitles.github.io/guessit-js",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "https://github.com/opensubtitles/guessit-js"
|
|
27
|
+
"url": "git+https://github.com/opensubtitles/guessit-js.git"
|
|
28
28
|
},
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/opensubtitles/guessit-js/issues"
|
|
@@ -46,12 +46,16 @@
|
|
|
46
46
|
"scripts": {
|
|
47
47
|
"dev": "vite build --watch",
|
|
48
48
|
"build": "vite build",
|
|
49
|
+
"prepublishOnly": "npm run build",
|
|
49
50
|
"test": "vitest run",
|
|
50
51
|
"test:watch": "vitest",
|
|
51
52
|
"test:coverage": "vitest run --coverage",
|
|
52
53
|
"typecheck": "tsc --noEmit",
|
|
53
54
|
"start": "npx tsx server.ts",
|
|
54
|
-
"wasm": "bash wasm/build.sh"
|
|
55
|
+
"wasm": "bash wasm/build.sh",
|
|
56
|
+
"schema": "tsx scripts/collect-schema-data.mjs && tsx scripts/gen-schema.mjs",
|
|
57
|
+
"diacritics": "node scripts/gen-diacritics.mjs",
|
|
58
|
+
"build:pages": "node scripts/build-pages.mjs"
|
|
55
59
|
},
|
|
56
60
|
"devDependencies": {
|
|
57
61
|
"@types/js-yaml": "^4.0.9",
|