libnpmpack 5.0.0-pre.1 → 5.0.0-pre.2

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 +4 -2
  2. package/package.json +6 -5
package/lib/index.js CHANGED
@@ -19,13 +19,15 @@ async function pack (spec = 'file:.', opts = {}) {
19
19
  // mode
20
20
  const banner = !opts.silent
21
21
 
22
+ const stdio = opts.foregroundScripts ? 'inherit' : 'pipe'
23
+
22
24
  if (spec.type === 'directory') {
23
25
  // prepack
24
26
  await runScript({
25
27
  ...opts,
26
28
  event: 'prepack',
27
29
  path: spec.fetchSpec,
28
- stdio: 'inherit',
30
+ stdio,
29
31
  pkg: manifest,
30
32
  banner,
31
33
  })
@@ -52,7 +54,7 @@ async function pack (spec = 'file:.', opts = {}) {
52
54
  ...opts,
53
55
  event: 'postpack',
54
56
  path: spec.fetchSpec,
55
- stdio: 'inherit',
57
+ stdio,
56
58
  pkg: manifest,
57
59
  banner,
58
60
  env: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmpack",
3
- "version": "5.0.0-pre.1",
3
+ "version": "5.0.0-pre.2",
4
4
  "description": "Programmatic API for the bits behind npm pack",
5
5
  "author": "GitHub Inc.",
6
6
  "main": "lib/index.js",
@@ -23,8 +23,9 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@npmcli/eslint-config": "^3.1.0",
26
- "@npmcli/template-oss": "4.4.1",
26
+ "@npmcli/template-oss": "4.5.0",
27
27
  "nock": "^13.0.7",
28
+ "spawk": "^1.7.1",
28
29
  "tap": "^16.0.1"
29
30
  },
30
31
  "repository": {
@@ -35,17 +36,17 @@
35
36
  "bugs": "https://github.com/npm/libnpmpack/issues",
36
37
  "homepage": "https://npmjs.com/package/libnpmpack",
37
38
  "dependencies": {
38
- "@npmcli/arborist": "^6.0.0-pre.3",
39
+ "@npmcli/arborist": "^6.0.0-pre.4",
39
40
  "@npmcli/run-script": "^4.1.3",
40
41
  "npm-package-arg": "^9.0.1",
41
- "pacote": "^14.0.0-pre.3"
42
+ "pacote": "^14.0.0"
42
43
  },
43
44
  "engines": {
44
45
  "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
45
46
  },
46
47
  "templateOSS": {
47
48
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
48
- "version": "4.4.1",
49
+ "version": "4.5.0",
49
50
  "content": "../../scripts/template-oss/index.js"
50
51
  },
51
52
  "tap": {