Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adds node: specifier to all native node modules #7559

Merged
merged 13 commits into from
May 28, 2024
Prev Previous commit
Next Next commit
libnpmpack
  • Loading branch information
reggi committed May 24, 2024
commit 6c82fbb719f858f843c8f779c96a878fd4778b0c
4 changes: 2 additions & 2 deletions workspaces/libnpmpack/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
const pacote = require('pacote')
const npa = require('npm-package-arg')
const runScript = require('@npmcli/run-script')
const path = require('path')
const path = require('node:path')
const Arborist = require('@npmcli/arborist')
const { writeFile } = require('fs/promises')
const { writeFile } = require('node:fs/promises')

module.exports = pack
async function pack (spec = 'file:.', opts = {}) {
Expand Down
4 changes: 2 additions & 2 deletions workspaces/libnpmpack/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const t = require('tap')
const tspawk = require('./fixtures/tspawk.js')
const spawk = tspawk(t)

const fs = require('fs')
const path = require('path')
const fs = require('node:fs')
const path = require('node:path')
const pack = require('../lib/index.js')
const tnock = require('./fixtures/tnock.js')

Expand Down