From 1cd0b5caaa67e9e8ba24f81abff4e6acafe23a67 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Wed, 13 May 2026 14:00:03 -0700 Subject: [PATCH] Add size-limit --- package.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e18a931..546afdd 100644 --- a/package.json +++ b/package.json @@ -23,19 +23,31 @@ "format": "ts-scripts format", "lint": "ts-scripts lint", "prepare": "ts-scripts install && npm run build", + "size": "size-limit", "specs": "ts-scripts specs", - "test": "ts-scripts test" + "test": "ts-scripts test && npm run size" }, "devDependencies": { "@borderless/ts-scripts": "^0.15.0", + "@size-limit/preset-small-lib": "^12.1.0", "@types/node": "^20.19.35", "@vitest/coverage-v8": "^3.2.4", + "size-limit": "^12.1.0", "typescript": "^5.9.3", "vitest": "^3.2.4" }, "engines": { "node": ">=18" }, + "size-limit": [ + { + "path": "dist/index.js", + "ignore": [ + "node:buffer" + ], + "limit": "1 kB" + } + ], "ts-scripts": { "dist": [ "dist"