diff --git a/smoke-tests/test/fixtures/setup.js b/smoke-tests/test/fixtures/setup.js index e5302104f2503..18492d0d52f8f 100644 --- a/smoke-tests/test/fixtures/setup.js +++ b/smoke-tests/test/fixtures/setup.js @@ -1,10 +1,10 @@ -const fs = require('fs/promises') -const { existsSync } = require('fs') -const { join, resolve, sep, extname, relative, delimiter } = require('path') +const fs = require('node:fs/promises') +const { existsSync } = require('node:fs') +const { join, resolve, sep, extname, relative, delimiter } = require('node:path') const which = require('which') const spawn = require('@npmcli/promise-spawn') const MockRegistry = require('@npmcli/mock-registry') -const http = require('http') +const http = require('node:http') const { createProxy } = require('proxy') const { SMOKE_PUBLISH_TARBALL, CI, PATH, Path } = process.env diff --git a/smoke-tests/test/index.js b/smoke-tests/test/index.js index 412b0f55d8565..48ab12ea98e53 100644 --- a/smoke-tests/test/index.js +++ b/smoke-tests/test/index.js @@ -1,4 +1,4 @@ -const { join } = require('path') +const { join } = require('node:path') const t = require('tap') const setup = require('./fixtures/setup.js') diff --git a/smoke-tests/test/large-install.js b/smoke-tests/test/large-install.js index a9260c8d3f0f1..460205c673182 100644 --- a/smoke-tests/test/large-install.js +++ b/smoke-tests/test/large-install.js @@ -1,5 +1,5 @@ const t = require('tap') -const path = require('path') +const path = require('node:path') const setup = require('./fixtures/setup.js') const getFixture = (p) => require( diff --git a/smoke-tests/test/npm-replace-global.js b/smoke-tests/test/npm-replace-global.js index b7177a0fec816..3514549aa40cd 100644 --- a/smoke-tests/test/npm-replace-global.js +++ b/smoke-tests/test/npm-replace-global.js @@ -1,7 +1,7 @@ const t = require('tap') -const { join, dirname, basename, extname } = require('path') -const fs = require('fs/promises') +const { join, dirname, basename, extname } = require('node:path') +const fs = require('node:fs/promises') const _which = require('which') const setup = require('./fixtures/setup.js')