From 54c5a86d4b8bba99fba890123a62eeb881748fed Mon Sep 17 00:00:00 2001 From: Tenpi Date: Tue, 2 Nov 2021 22:38:23 -0400 Subject: [PATCH 1/2] fix node:fs import --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 70c3461..1eab540 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -import fs from 'node:fs'; +import fs from 'fs'; import arrayUnion from 'array-union'; import merge2 from 'merge2'; import fastGlob from 'fast-glob'; From db67fe995f7ce0ac8f400c2a9d466cc687d6a121 Mon Sep 17 00:00:00 2001 From: Tenpi Date: Tue, 2 Nov 2021 22:49:38 -0400 Subject: [PATCH 2/2] fix additional imports --- bench.js | 6 +++--- gitignore.js | 6 +++--- stream-utils.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bench.js b/bench.js index 29b10d5..48e407d 100644 --- a/bench.js +++ b/bench.js @@ -1,7 +1,7 @@ /* global after, before, bench, suite */ -import fs from 'node:fs'; -import path from 'node:path'; -import {fileURLToPath} from 'node:url'; +import fs from 'fs'; +import path from 'path'; +import {fileURLToPath} from 'url'; import rimraf from 'rimraf'; import globbyMainBranch from 'globby'; import gs from 'glob-stream'; diff --git a/gitignore.js b/gitignore.js index 8c524a8..a815a28 100644 --- a/gitignore.js +++ b/gitignore.js @@ -1,6 +1,6 @@ -import {promisify} from 'node:util'; -import fs from 'node:fs'; -import path from 'node:path'; +import {promisify} from 'util'; +import fs from 'fs'; +import path from 'path'; import fastGlob from 'fast-glob'; import gitIgnore from 'ignore'; import slash from 'slash'; diff --git a/stream-utils.js b/stream-utils.js index 91a99bb..af84dc5 100644 --- a/stream-utils.js +++ b/stream-utils.js @@ -1,4 +1,4 @@ -import {Transform} from 'node:stream'; +import {Transform} from 'stream'; class ObjectTransform extends Transform { constructor() {