libnpmpack 6.0.9 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +1 -8
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -4,9 +4,8 @@ const pacote = require('pacote')
4
4
  const npa = require('npm-package-arg')
5
5
  const runScript = require('@npmcli/run-script')
6
6
  const path = require('path')
7
- const util = require('util')
8
7
  const Arborist = require('@npmcli/arborist')
9
- const writeFile = util.promisify(require('fs').writeFile)
8
+ const { writeFile } = require('fs/promises')
10
9
 
11
10
  module.exports = pack
12
11
  async function pack (spec = 'file:.', opts = {}) {
@@ -15,10 +14,6 @@ async function pack (spec = 'file:.', opts = {}) {
15
14
 
16
15
  const manifest = await pacote.manifest(spec, opts)
17
16
 
18
- // Default to true if no log options passed, set to false if we're in silent
19
- // mode
20
- const banner = !opts.silent
21
-
22
17
  const stdio = opts.foregroundScripts ? 'inherit' : 'pipe'
23
18
 
24
19
  if (spec.type === 'directory' && !opts.ignoreScripts) {
@@ -29,7 +24,6 @@ async function pack (spec = 'file:.', opts = {}) {
29
24
  path: spec.fetchSpec,
30
25
  stdio,
31
26
  pkg: manifest,
32
- banner,
33
27
  })
34
28
  }
35
29
 
@@ -56,7 +50,6 @@ async function pack (spec = 'file:.', opts = {}) {
56
50
  path: spec.fetchSpec,
57
51
  stdio,
58
52
  pkg: manifest,
59
- banner,
60
53
  env: {
61
54
  npm_package_from: tarball.from,
62
55
  npm_package_resolved: tarball.resolved,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmpack",
3
- "version": "6.0.9",
3
+ "version": "7.0.1",
4
4
  "description": "Programmatic API for the bits behind npm pack",
5
5
  "author": "GitHub Inc.",
6
6
  "main": "lib/index.js",
@@ -30,16 +30,16 @@
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",
33
- "url": "https://github.com/npm/cli.git",
33
+ "url": "git+https://github.com/npm/cli.git",
34
34
  "directory": "workspaces/libnpmpack"
35
35
  },
36
36
  "bugs": "https://github.com/npm/libnpmpack/issues",
37
37
  "homepage": "https://npmjs.com/package/libnpmpack",
38
38
  "dependencies": {
39
39
  "@npmcli/arborist": "^7.2.1",
40
- "@npmcli/run-script": "^7.0.2",
41
- "npm-package-arg": "^11.0.1",
42
- "pacote": "^17.0.4"
40
+ "@npmcli/run-script": "^8.1.0",
41
+ "npm-package-arg": "^11.0.2",
42
+ "pacote": "^18.0.1"
43
43
  },
44
44
  "engines": {
45
45
  "node": "^16.14.0 || >=18.0.0"