This PR adds the ability to customize the script, which defaults to npx size-limit --json.
When used with npm workspaces, npx executes in all workspaces. Therefore, stdout of npx size-limit --json in workspaces breaks parsing since it looks like this:
This PR adds the ability to customize the script, which defaults to
npx size-limit --json
.When used with npm workspaces, npx executes in all workspaces. Therefore, stdout of
npx size-limit --json
in workspaces breaks parsing since it looks like this:A way around that is to specify the workspace:
This currently isn't possible, since the default script of
npx size-limit --json
isn't customizable.