@dloizides/utils 1.0.1 → 1.0.2

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.
Files changed (1) hide show
  1. package/package.json +20 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dloizides/utils",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Type-safe utility functions for TypeScript projects",
5
5
  "keywords": [
6
6
  "typescript",
@@ -65,7 +65,7 @@
65
65
  "scripts": {
66
66
  "build": "tsup",
67
67
  "build:watch": "tsup --watch",
68
- "build:analyze": "tsup && source-map-explorer dist/*.js --html dist/bundle-report.html",
68
+ "build:analyze": "tsup && size-limit",
69
69
  "test": "jest",
70
70
  "test:watch": "jest --watch",
71
71
  "test:coverage": "jest --coverage",
@@ -75,7 +75,7 @@
75
75
  "clean": "rimraf dist",
76
76
  "security:audit": "npm audit --audit-level=high",
77
77
  "deps:outdated": "npm outdated || exit 0",
78
- "deps:unused": "npx depcheck",
78
+ "deps:unused": "npx depcheck --ignores \"@types/jest,@types/node,rimraf,size-limit,@size-limit/preset-small-lib\"",
79
79
  "deps:licenses": "npx license-checker --onlyAllow \"MIT;Apache-2.0;ISC;BSD-2-Clause;BSD-3-Clause;0BSD;Unlicense;CC0-1.0\"",
80
80
  "deps:health": "npm run deps:outdated && npm run deps:unused",
81
81
  "prepublishOnly": "npm run clean && npm run build && npm run test",
@@ -83,6 +83,7 @@
83
83
  "postversion": "git push && git push --tags"
84
84
  },
85
85
  "devDependencies": {
86
+ "@size-limit/preset-small-lib": "^12.0.0",
86
87
  "@types/jest": "^29.5.0",
87
88
  "@types/node": "^20.19.32",
88
89
  "@typescript-eslint/eslint-plugin": "^7.0.0",
@@ -91,9 +92,23 @@
91
92
  "eslint-plugin-sonarjs": "^3.0.6",
92
93
  "jest": "^29.7.0",
93
94
  "rimraf": "^5.0.0",
94
- "source-map-explorer": "^2.5.3",
95
+ "size-limit": "^12.0.0",
95
96
  "ts-jest": "^29.1.0",
96
97
  "tsup": "^8.0.0",
97
98
  "typescript": "^5.4.0"
98
- }
99
+ },
100
+ "size-limit": [
101
+ {
102
+ "path": "dist/index.js",
103
+ "limit": "3 KB"
104
+ },
105
+ {
106
+ "path": "dist/guards/index.js",
107
+ "limit": "2 KB"
108
+ },
109
+ {
110
+ "path": "dist/assertions/index.js",
111
+ "limit": "1 KB"
112
+ }
113
+ ]
99
114
  }