From 3de630e63321f5310c01d7063cbe2e13981d0cef Mon Sep 17 00:00:00 2001 From: Alexander Klimetschek Date: Tue, 25 Nov 2025 08:29:36 -0800 Subject: [PATCH 1/3] chore: update package-lock.json --- package-lock.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 27c651e..0b694be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6349,8 +6349,7 @@ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" }, "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "version": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { From b494db3cc5193ca69a283a065784de62dbf51ed4 Mon Sep 17 00:00:00 2001 From: Alexander Klimetschek Date: Tue, 25 Nov 2025 08:33:33 -0800 Subject: [PATCH 2/3] chore(docs): remove broken travis ci badge from readme --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 4d1c20a..3180a88 100644 --- a/README.md +++ b/README.md @@ -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) From 6396e9265608fa993563335ce3a20b0bce7c3846 Mon Sep 17 00:00:00 2001 From: Alexander Klimetschek Date: Tue, 25 Nov 2025 08:40:31 -0800 Subject: [PATCH 3/3] fix(npm_package): use npm pack instead of npm publish --dry-run --- README.md | 4 ++-- lib/comparators/npm_package.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3180a88..1d1f49e 100644 --- a/README.md +++ b/README.md @@ -511,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: diff --git a/lib/comparators/npm_package.js b/lib/comparators/npm_package.js index 8bda5dc..3367cc2 100644 --- a/lib/comparators/npm_package.js +++ b/lib/comparators/npm_package.js @@ -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, "");