libnpmpack 2.0.0 → 2.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.
- package/CHANGELOG.md +1 -1
- package/index.js +7 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -11,6 +11,10 @@ async function pack (spec = 'file:.', opts = {}) {
|
|
|
11
11
|
|
|
12
12
|
const manifest = await pacote.manifest(spec, opts)
|
|
13
13
|
|
|
14
|
+
// Default to true if no log options passed, set to false if we're in silent
|
|
15
|
+
// mode
|
|
16
|
+
const banner = !opts.log || (opts.log.level !== 'silent')
|
|
17
|
+
|
|
14
18
|
if (spec.type === 'directory') {
|
|
15
19
|
// prepack
|
|
16
20
|
await runScript({
|
|
@@ -18,7 +22,8 @@ async function pack (spec = 'file:.', opts = {}) {
|
|
|
18
22
|
event: 'prepack',
|
|
19
23
|
path: spec.fetchSpec,
|
|
20
24
|
stdio: 'inherit',
|
|
21
|
-
pkg: manifest
|
|
25
|
+
pkg: manifest,
|
|
26
|
+
banner
|
|
22
27
|
})
|
|
23
28
|
}
|
|
24
29
|
|
|
@@ -36,6 +41,7 @@ async function pack (spec = 'file:.', opts = {}) {
|
|
|
36
41
|
path: spec.fetchSpec,
|
|
37
42
|
stdio: 'inherit',
|
|
38
43
|
pkg: manifest,
|
|
44
|
+
banner,
|
|
39
45
|
env: {
|
|
40
46
|
npm_package_from: tarball.from,
|
|
41
47
|
npm_package_resolved: tarball.resolved,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libnpmpack",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Programmatic API for the bits behind npm pack",
|
|
5
5
|
"author": "npm Inc. <support@npmjs.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"check-coverage": true
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"nock": "^
|
|
27
|
-
"standard": "^
|
|
28
|
-
"tap": "^14.
|
|
26
|
+
"nock": "^13.0.7",
|
|
27
|
+
"standard": "^16.0.3",
|
|
28
|
+
"tap": "^14.11.0"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"bugs": "https://github.com/npm/libnpmpack/issues",
|
|
35
35
|
"homepage": "https://npmjs.com/package/libnpmpack",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@npmcli/run-script": "^1.3
|
|
38
|
-
"npm-package-arg": "^8.
|
|
39
|
-
"pacote": "^11.
|
|
37
|
+
"@npmcli/run-script": "^1.8.3",
|
|
38
|
+
"npm-package-arg": "^8.1.0",
|
|
39
|
+
"pacote": "^11.2.6"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=10"
|