From 02d1a8b6924d325d4252c1adc2248b30c649e7b3 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 9 Nov 2024 14:30:35 -0800 Subject: [PATCH] build(scripts): use `node:` prefix --- scripts/build-css.js | 4 ++-- scripts/build-docs.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build-css.js b/scripts/build-css.js index 8d46c8b798..167de7048b 100644 --- a/scripts/build-css.js +++ b/scripts/build-css.js @@ -1,8 +1,8 @@ -const fs = require("fs"); +const fs = require("node:fs"); +const path = require("node:path"); const sass = require("sass"); const autoprefixer = require("autoprefixer"); const postcss = require("postcss"); -const path = require("path"); (async () => { const scss = fs diff --git a/scripts/build-docs.js b/scripts/build-docs.js index 92efe913ba..081bb926e7 100644 --- a/scripts/build-docs.js +++ b/scripts/build-docs.js @@ -1,4 +1,4 @@ -const fs = require("fs"); +const fs = require("node:fs"); const glob = require("glob"); const { sveld } = require("sveld"); const pkg = require("../package.json");