libnpmdiff 5.0.0-pre.0 → 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.
- package/lib/tarball.js +5 -1
- package/package.json +14 -6
package/lib/tarball.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const { relative } = require('path')
|
|
2
2
|
|
|
3
|
+
const Arborist = require('@npmcli/arborist')
|
|
3
4
|
const npa = require('npm-package-arg')
|
|
4
5
|
const pkgContents = require('@npmcli/installed-package-contents')
|
|
5
6
|
const pacote = require('pacote')
|
|
@@ -28,7 +29,10 @@ const tarball = (manifest, opts) => {
|
|
|
28
29
|
return nodeModulesTarball(manifest, opts)
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
return pacote.tarball(manifest._resolved,
|
|
32
|
+
return pacote.tarball(manifest._resolved, {
|
|
33
|
+
...opts,
|
|
34
|
+
Arborist,
|
|
35
|
+
})
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
module.exports = tarball
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libnpmdiff",
|
|
3
|
-
"version": "5.0.0-pre.
|
|
3
|
+
"version": "5.0.0-pre.2",
|
|
4
4
|
"description": "The registry diff",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,30 +34,38 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"eslint": "eslint",
|
|
36
36
|
"lint": "eslint \"**/*.js\"",
|
|
37
|
-
"lintfix": "
|
|
37
|
+
"lintfix": "node ../.. run lint -- --fix",
|
|
38
38
|
"test": "tap",
|
|
39
|
-
"posttest": "
|
|
39
|
+
"posttest": "node ../.. run lint",
|
|
40
40
|
"snap": "tap",
|
|
41
41
|
"postlint": "template-oss-check",
|
|
42
42
|
"template-oss-apply": "template-oss-apply --force"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@npmcli/eslint-config": "^3.1.0",
|
|
46
|
-
"@npmcli/template-oss": "4.
|
|
46
|
+
"@npmcli/template-oss": "4.5.0",
|
|
47
47
|
"tap": "^16.0.1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
+
"@npmcli/arborist": "^6.0.0-pre.4",
|
|
50
51
|
"@npmcli/disparity-colors": "^2.0.0",
|
|
51
52
|
"@npmcli/installed-package-contents": "^1.0.7",
|
|
52
53
|
"binary-extensions": "^2.2.0",
|
|
53
54
|
"diff": "^5.1.0",
|
|
54
55
|
"minimatch": "^5.0.1",
|
|
55
56
|
"npm-package-arg": "^9.0.1",
|
|
56
|
-
"pacote": "^
|
|
57
|
+
"pacote": "^14.0.0",
|
|
57
58
|
"tar": "^6.1.0"
|
|
58
59
|
},
|
|
59
60
|
"templateOSS": {
|
|
60
61
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
61
|
-
"version": "4.
|
|
62
|
+
"version": "4.5.0",
|
|
63
|
+
"content": "../../scripts/template-oss/index.js"
|
|
64
|
+
},
|
|
65
|
+
"tap": {
|
|
66
|
+
"nyc-arg": [
|
|
67
|
+
"--exclude",
|
|
68
|
+
"tap-snapshots/**"
|
|
69
|
+
]
|
|
62
70
|
}
|
|
63
71
|
}
|