Skip to content

Commit aadd5db

Browse files
committed
Use node: prefix consistently
1 parent cf8f222 commit aadd5db

16 files changed

Lines changed: 21 additions & 22 deletions

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/usr/bin/env node
22

3-
import path from 'path'
4-
3+
import path from 'node:path'
4+
import { text } from 'node:stream/consumers'
55
import prettyHrtime from 'pretty-hrtime'
6-
import { text } from 'stream/consumers'
76
import read from 'read-cache'
87
import pc from 'picocolors'
98
import { glob } from 'tinyglobby'

lib/DependencyGraph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path'
1+
import path from 'node:path'
22
import { DepGraph } from 'dependency-graph'
33

44
export default function createDependencyGraph() {

lib/DependencyGraph.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava'
2-
import path from 'path'
2+
import path from 'node:path'
33
import createDependencyGraph from './DependencyGraph.js'
44

55
function resolveArray(arr) {

lib/getMapfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path'
1+
import path from 'node:path'
22
export default function getMapfile(options) {
33
if (options.map && typeof options.map.annotation === 'string') {
44
return `${path.dirname(options.to)}/${options.map.annotation}`

test/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava'
2-
import path from 'path'
2+
import path from 'node:path'
33

44
import cli from './helpers/cli.js'
55
import tmp from './helpers/tmp.js'

test/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava'
2-
import path from 'path'
2+
import path from 'node:path'
33

44
import ENV from './helpers/env.js'
55

test/dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava'
2-
import path from 'path'
2+
import path from 'node:path'
33

44
import cli from './helpers/cli.js'
55
import tmp from './helpers/tmp.js'

test/ext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import test from 'ava'
22

33
import fs from 'node:fs/promises'
4-
import path from 'path'
4+
import path from 'node:path'
55

66
import cli from './helpers/cli.js'
77
import tmp from './helpers/tmp.js'

test/glob.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava'
2-
import path from 'path'
2+
import path from 'node:path'
33

44
import cli from './helpers/cli.js'
55
import tmp from './helpers/tmp.js'

test/helpers/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import path from 'path'
2-
import { exec } from 'child_process'
1+
import path from 'node:path'
2+
import { exec } from 'node:child_process'
33

44
export default function (args, cwd) {
55
return new Promise((resolve) => {

0 commit comments

Comments
 (0)