From 6e2841de4b4e991dd18851e0f3f105df9b989091 Mon Sep 17 00:00:00 2001 From: Mickael Jeanroy Date: Wed, 6 Sep 2023 21:21:45 +0200 Subject: [PATCH] chore(build): use node: prefix to import core modules --- scripts/build/index.js | 2 +- scripts/build/rollup.config.js | 4 ++-- scripts/changelog/index.js | 2 +- scripts/config.js | 2 +- scripts/lint/index.js | 2 +- scripts/release/index.js | 2 +- scripts/test/index.js | 2 +- scripts/watch/index.js | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/build/index.js b/scripts/build/index.js index 12dbcd38..03682c6c 100644 --- a/scripts/build/index.js +++ b/scripts/build/index.js @@ -22,7 +22,7 @@ * SOFTWARE. */ -const path = require('path'); +const path = require('node:path'); const gulp = require('gulp'); const rollup = require('rollup'); const rollupConfig = require('./rollup.config'); diff --git a/scripts/build/rollup.config.js b/scripts/build/rollup.config.js index 4a765338..0207f1d0 100644 --- a/scripts/build/rollup.config.js +++ b/scripts/build/rollup.config.js @@ -25,8 +25,8 @@ // Required with prettier >= 2.3.0 with node 11 require('globalthis').shim(); -const path = require('path'); -const fs = require('fs'); +const path = require('node:path'); +const fs = require('node:fs'); const commenting = require('commenting'); const babel = require('@rollup/plugin-babel').default; const stripBanner = require('rollup-plugin-strip-banner'); diff --git a/scripts/changelog/index.js b/scripts/changelog/index.js index 864df4b2..fc2df22c 100644 --- a/scripts/changelog/index.js +++ b/scripts/changelog/index.js @@ -22,7 +22,7 @@ * SOFTWARE. */ -const path = require('path'); +const path = require('node:path'); const gulp = require('gulp'); const conventionalChangelog = require('gulp-conventional-changelog'); const config = require('../config'); diff --git a/scripts/config.js b/scripts/config.js index c3825ca4..968ac940 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -22,7 +22,7 @@ * SOFTWARE. */ -const path = require('path'); +const path = require('node:path'); const ROOT = path.join(__dirname, '..'); module.exports = { diff --git a/scripts/lint/index.js b/scripts/lint/index.js index d1498a1d..52275e10 100644 --- a/scripts/lint/index.js +++ b/scripts/lint/index.js @@ -22,7 +22,7 @@ * SOFTWARE. */ -const path = require('path'); +const path = require('node:path'); const log = require('../log'); const config = require('../config'); diff --git a/scripts/release/index.js b/scripts/release/index.js index a2a8920c..fbbf7ec3 100644 --- a/scripts/release/index.js +++ b/scripts/release/index.js @@ -22,7 +22,7 @@ * SOFTWARE. */ -const fs = require('fs'); +const fs = require('node:fs'); const gulp = require('gulp'); const git = require('gulp-git'); const bump = require('gulp-bump'); diff --git a/scripts/test/index.js b/scripts/test/index.js index c74e4d4a..ed07d36f 100644 --- a/scripts/test/index.js +++ b/scripts/test/index.js @@ -22,7 +22,7 @@ * SOFTWARE. */ -const path = require('path'); +const path = require('node:path'); const gulp = require('gulp'); const jasmine = require('gulp-jasmine'); const config = require('../config'); diff --git a/scripts/watch/index.js b/scripts/watch/index.js index d098f9e6..b26b230e 100644 --- a/scripts/watch/index.js +++ b/scripts/watch/index.js @@ -22,7 +22,7 @@ * SOFTWARE. */ -const path = require('path'); +const path = require('node:path'); const gulp = require('gulp'); const build = require('../build'); const config = require('../config');