Add typescript dev dependency

This commit is contained in:
Clarence Chan committed 2025-01-28 22:33:56 -05:00
1 parent 226ec8daba
commit e0c5ddc2ff
5 files changed
+38 -4

No files matched your search

+16 -1
View File
@@ -13,7 +13,8 @@
"html-entities": "^2.4.0",
"ics": "^3.4.0",
"node-html-parser": "^6.1.9",
"tsx": "^4.19.2"
"tsx": "^4.19.2",
"typescript": "^5.7.3"
}
},
"node_modules/@esbuild/aix-ppc64": {
@@ -738,6 +739,20 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/typescript": {
"version": "5.7.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
},
"node_modules/undici-types": {
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
+3 -2
View File
@@ -2,7 +2,7 @@
"name": "ufc-cal",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "src/index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npx tsx src/index.ts"
@@ -14,7 +14,8 @@
"html-entities": "^2.4.0",
"ics": "^3.4.0",
"node-html-parser": "^6.1.9",
"tsx": "^4.19.2"
"tsx": "^4.19.2",
"typescript": "^5.7.3"
},
"type": "module"
}
+1 -1
View File
@@ -1,6 +1,6 @@
import { getAllDetailedEvents } from "./scrape.js";
import * as fs from "fs";
import { createEvents, DateArray, EventAttributes } from "ics";
import { createEvents, type DateArray, type EventAttributes } from "ics";
/**
* Extracts the details of recent and upcoming UFC events, then creates an
View File
File renamed without changes.
+18
View File
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": true,
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
"module": "preserve",
"noEmit": true,
"lib": ["es2022"]
}
}