diff options
author | 2023-07-18 02:17:59 +0200 | |
---|---|---|
committer | 2023-07-18 02:17:59 +0200 | |
commit | f14e48098a3bc74d85715b5610dbba588d4943cd (patch) | |
tree | 11284e8456c5f7f52fd37d1ad6f488133e883db9 /scripts/cmd/prebuild.js | |
parent | cc0f81c040e912cff0c09e89327ef1655f96b67d (diff) | |
download | astro-f14e48098a3bc74d85715b5610dbba588d4943cd.tar.gz astro-f14e48098a3bc74d85715b5610dbba588d4943cd.tar.zst astro-f14e48098a3bc74d85715b5610dbba588d4943cd.zip |
nit: use `node:` prefix everywhere (#7692)
* nit: use `node:` prefix everywhere
* nit: fs/promises too
* test: workaround issue in node builtin detection
Diffstat (limited to 'scripts/cmd/prebuild.js')
-rw-r--r-- | scripts/cmd/prebuild.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cmd/prebuild.js b/scripts/cmd/prebuild.js index 305298f72..3e206f25e 100644 --- a/scripts/cmd/prebuild.js +++ b/scripts/cmd/prebuild.js @@ -1,9 +1,9 @@ import esbuild from 'esbuild'; import { red } from 'kleur/colors'; +import fs from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath, pathToFileURL } from 'node:url'; import glob from 'tiny-glob'; -import fs from 'fs'; -import path from 'path'; -import { pathToFileURL, fileURLToPath } from 'url'; function escapeTemplateLiterals(str) { return str.replace(/\`/g, '\\`').replace(/\$\{/g, '\\${'); |