Migrate core JavaScript to TypeScript (#2582)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Paweł Kuna
2026-01-09 21:49:22 +01:00
committed by GitHub
co-authored by Copilot
parent a24d5cab13
commit 857988dd44
51 changed files with 753 additions and 500 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
import fs from 'node:fs/promises'
import { readFileSync } from 'node:fs'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const pkgJson = path.join(__dirname, '../../core/package.json')
const pkg = JSON.parse(await fs.readFile(pkgJson, 'utf8'))
const pkg = JSON.parse(readFileSync(pkgJson, 'utf8'))
const year = new Date().getFullYear()