Skip to content

Commit

Permalink
chore(build): use node: prefix to import core modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed Sep 6, 2023
1 parent 646bd68 commit 6e2841d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions scripts/build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion scripts/changelog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const path = require('path');
const path = require('node:path');
const ROOT = path.join(__dirname, '..');

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const path = require('path');
const path = require('node:path');
const log = require('../log');
const config = require('../config');

Expand Down
2 changes: 1 addition & 1 deletion scripts/release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion scripts/watch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6e2841d

Please sign in to comment.