@adobe/sizewatcher 1.4.0 → 1.4.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/README.md +2 -3
- package/lib/comparators/npm_package.js +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
[](https://npmjs.org/package/@adobe/sizewatcher)
|
|
2
2
|
[](http://www.apache.org/licenses/LICENSE-2.0)
|
|
3
3
|
[](https://coveralls.io/github/adobe/sizewatcher)
|
|
4
|
-
[](https://travis-ci.com/adobe/sizewatcher)
|
|
5
4
|
[](https://circleci.com/gh/adobe/sizewatcher)
|
|
6
5
|
[](https://github.com/adobe/sizewatcher/actions?query=workflow%3A%22Node.js+CI%22)
|
|
7
6
|
[](https://github.com/adobe/sizewatcher/actions?query=workflow%3ACodeQL)
|
|
@@ -512,13 +511,13 @@ Configuration: supports `dir`
|
|
|
512
511
|
|
|
513
512
|
### npm_package
|
|
514
513
|
|
|
515
|
-
Compares the size of an npm package tarball by running `npm
|
|
514
|
+
Compares the size of an npm package tarball by running `npm pack --dry-run`.
|
|
516
515
|
|
|
517
516
|
Name: `npm_package`
|
|
518
517
|
|
|
519
518
|
Trigger: Runs if a `package.json` is found.
|
|
520
519
|
|
|
521
|
-
Details: Prints the package contents and metadata using the output of `npm
|
|
520
|
+
Details: Prints the package contents and metadata using the output of `npm pack --dry-run`.
|
|
522
521
|
|
|
523
522
|
---
|
|
524
523
|
Package contents:
|
|
@@ -30,8 +30,8 @@ async function getSize(dir) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
debug(`running npm
|
|
34
|
-
let { stderr } = await exec("npm
|
|
33
|
+
debug(`running npm pack --dry-run inside ${dir}...`);
|
|
34
|
+
let { stderr } = await exec("npm pack --dry-run", { cwd: dir });
|
|
35
35
|
|
|
36
36
|
stderr = stderr.replace(/npm notice /g, "");
|
|
37
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/sizewatcher",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Warns if your pull requests introduce large size increases.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@octokit/rest": "19.0.3",
|
|
42
|
-
"debug": "4.4.
|
|
42
|
+
"debug": "4.4.3",
|
|
43
43
|
"deepmerge": "4.3.1",
|
|
44
44
|
"get-folder-size": "5.0.0",
|
|
45
45
|
"glob": "10.3.5",
|
|
46
|
-
"js-yaml": "4.1.
|
|
46
|
+
"js-yaml": "4.1.1",
|
|
47
47
|
"pretty-bytes": "5.6.0",
|
|
48
48
|
"require-dir": "1.2.0",
|
|
49
49
|
"simple-git": "3.22.0",
|
|
50
|
-
"tmp": "0.2.
|
|
50
|
+
"tmp": "0.2.5",
|
|
51
51
|
"xbytes": "1.9.1"
|
|
52
52
|
},
|
|
53
53
|
"overrides": {
|
|
54
|
-
"whatwg-url": "
|
|
54
|
+
"whatwg-url": "14.2.0"
|
|
55
55
|
}
|
|
56
56
|
}
|