From 5915f8b2b5d6d73d5fbecc741571dbd5dafc3cfd Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 19 May 2022 19:40:54 +0200 Subject: [PATCH] meta: prepare internal script files for lint rune hardening --- bin/update-contributors.mjs | 2 ++ private/locale-pack/test.mjs | 1 + private/release/updateChangelogs.js | 1 + 3 files changed, 4 insertions(+) diff --git a/bin/update-contributors.mjs b/bin/update-contributors.mjs index 284be8e2e8..2e036ad2b9 100755 --- a/bin/update-contributors.mjs +++ b/bin/update-contributors.mjs @@ -1,7 +1,9 @@ #!/usr/bin/env node import { spawn } from 'node:child_process' +import { Buffer } from 'node:buffer' import fs from 'node:fs/promises' +import process from 'node:process' const README_FILE_NAME = new URL('../README.md', import.meta.url) diff --git a/private/locale-pack/test.mjs b/private/locale-pack/test.mjs index a175438929..e525d824f5 100644 --- a/private/locale-pack/test.mjs +++ b/private/locale-pack/test.mjs @@ -1,5 +1,6 @@ /* eslint-disable no-console, prefer-arrow-callback */ import path from 'node:path' +import process from 'node:process' import fs from 'node:fs' import { fileURLToPath } from 'node:url' diff --git a/private/release/updateChangelogs.js b/private/release/updateChangelogs.js index f0ce05f17a..aaad9d34f7 100644 --- a/private/release/updateChangelogs.js +++ b/private/release/updateChangelogs.js @@ -2,6 +2,7 @@ import { createReadStream, promises as fs } from 'node:fs' import { createInterface } from 'node:readline' +import { Buffer } from 'node:buffer' import process from 'node:process' const ROOT = new URL('../../', import.meta.url)