Skip to content

Commit 78f1281

Browse files
committed
fix: satisfy validator script lint rules
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 96b144a commit 78f1281

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/validate-pdfjs-dist.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
22
// SPDX-License-Identifier: AGPL-3.0-or-later
33

4+
import { Buffer } from 'node:buffer'
45
import { readdir, readFile } from 'node:fs/promises'
56
import path from 'node:path'
67
import process from 'node:process'
@@ -97,7 +98,7 @@ export async function validatePdfjsDist({ rootDir } = {}) {
9798

9899
async function main() {
99100
const result = await validatePdfjsDist()
100-
console.log(
101+
globalThis.console.log(
101102
`Validated PDF.js dist chunks: runtime ${result.runtimeChunk} and worker ${result.workerChunk} both use ${result.runtimeVersion}.`
102103
)
103104
}
@@ -106,7 +107,7 @@ const invokedPath = process.argv[1] ? pathToFileURL(path.resolve(process.argv[1]
106107

107108
if (invokedPath === import.meta.url) {
108109
main().catch((error) => {
109-
console.error(error instanceof Error ? error.message : error)
110+
globalThis.console.error(error instanceof Error ? error.message : error)
110111
process.exitCode = 1
111112
})
112113
}

0 commit comments

Comments
 (0)