libnpmpack 5.0.0-pre.0 → 5.0.0-pre.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/lib/index.js +2 -0
- package/package.json +14 -6
package/lib/index.js
CHANGED
|
@@ -5,6 +5,7 @@ const npa = require('npm-package-arg')
|
|
|
5
5
|
const runScript = require('@npmcli/run-script')
|
|
6
6
|
const path = require('path')
|
|
7
7
|
const util = require('util')
|
|
8
|
+
const Arborist = require('@npmcli/arborist')
|
|
8
9
|
const writeFile = util.promisify(require('fs').writeFile)
|
|
9
10
|
|
|
10
11
|
module.exports = pack
|
|
@@ -33,6 +34,7 @@ async function pack (spec = 'file:.', opts = {}) {
|
|
|
33
34
|
// packs tarball
|
|
34
35
|
const tarball = await pacote.tarball(manifest._resolved, {
|
|
35
36
|
...opts,
|
|
37
|
+
Arborist,
|
|
36
38
|
integrity: manifest._integrity,
|
|
37
39
|
})
|
|
38
40
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libnpmpack",
|
|
3
|
-
"version": "5.0.0-pre.
|
|
3
|
+
"version": "5.0.0-pre.1",
|
|
4
4
|
"description": "Programmatic API for the bits behind npm pack",
|
|
5
5
|
"author": "GitHub Inc.",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"lint": "eslint \"**/*.js\"",
|
|
17
17
|
"test": "tap",
|
|
18
|
-
"posttest": "
|
|
18
|
+
"posttest": "node ../.. run lint",
|
|
19
19
|
"postlint": "template-oss-check",
|
|
20
|
-
"lintfix": "
|
|
20
|
+
"lintfix": "node ../.. run lint -- --fix",
|
|
21
21
|
"snap": "tap",
|
|
22
22
|
"template-oss-apply": "template-oss-apply --force"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@npmcli/eslint-config": "^3.1.0",
|
|
26
|
-
"@npmcli/template-oss": "4.
|
|
26
|
+
"@npmcli/template-oss": "4.4.1",
|
|
27
27
|
"nock": "^13.0.7",
|
|
28
28
|
"tap": "^16.0.1"
|
|
29
29
|
},
|
|
@@ -35,15 +35,23 @@
|
|
|
35
35
|
"bugs": "https://github.com/npm/libnpmpack/issues",
|
|
36
36
|
"homepage": "https://npmjs.com/package/libnpmpack",
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"@npmcli/arborist": "^6.0.0-pre.3",
|
|
38
39
|
"@npmcli/run-script": "^4.1.3",
|
|
39
40
|
"npm-package-arg": "^9.0.1",
|
|
40
|
-
"pacote": "^
|
|
41
|
+
"pacote": "^14.0.0-pre.3"
|
|
41
42
|
},
|
|
42
43
|
"engines": {
|
|
43
44
|
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
|
|
44
45
|
},
|
|
45
46
|
"templateOSS": {
|
|
46
47
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
47
|
-
"version": "4.
|
|
48
|
+
"version": "4.4.1",
|
|
49
|
+
"content": "../../scripts/template-oss/index.js"
|
|
50
|
+
},
|
|
51
|
+
"tap": {
|
|
52
|
+
"nyc-arg": [
|
|
53
|
+
"--exclude",
|
|
54
|
+
"tap-snapshots/**"
|
|
55
|
+
]
|
|
48
56
|
}
|
|
49
57
|
}
|