Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[![Version](https://img.shields.io/npm/v/@adobe/sizewatcher.svg)](https://npmjs.org/package/@adobe/sizewatcher)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
[![Coverage Status](https://coveralls.io/repos/github/adobe/sizewatcher/badge.svg)](https://coveralls.io/github/adobe/sizewatcher)
[![Travis](https://travis-ci.com/adobe/sizewatcher.svg?branch=main)](https://travis-ci.com/adobe/sizewatcher)
[![CircleCI](https://circleci.com/gh/adobe/sizewatcher.svg?style=shield)](https://circleci.com/gh/adobe/sizewatcher)
[![Github Actions Node.js CI Status](https://github.com/adobe/sizewatcher/workflows/Node.js%20CI/badge.svg)](https://github.com/adobe/sizewatcher/actions?query=workflow%3A%22Node.js+CI%22)
[![CodeQL Status](https://github.com/adobe/sizewatcher/workflows/CodeQL/badge.svg)](https://github.com/adobe/sizewatcher/actions?query=workflow%3ACodeQL)
Expand Down Expand Up @@ -512,13 +511,13 @@ Configuration: supports `dir`

### npm_package

Compares the size of an npm package tarball by running `npm publish --dry-run`.
Compares the size of an npm package tarball by running `npm pack --dry-run`.

Name: `npm_package`

Trigger: Runs if a `package.json` is found.

Details: Prints the package contents and metadata using the output of `npm publish --dry-run`.
Details: Prints the package contents and metadata using the output of `npm pack --dry-run`.

---
Package contents:
Expand Down
4 changes: 2 additions & 2 deletions lib/comparators/npm_package.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ async function getSize(dir) {
};
}

debug(`running npm publish --dry-run inside ${dir}...`);
let { stderr } = await exec("npm publish --dry-run", { cwd: dir });
debug(`running npm pack --dry-run inside ${dir}...`);
let { stderr } = await exec("npm pack --dry-run", { cwd: dir });

stderr = stderr.replace(/npm notice /g, "");

Expand Down
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.