@dloizides/utils 1.0.0 → 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 +25 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dloizides/utils",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Type-safe utility functions for TypeScript projects",
5
5
  "keywords": [
6
6
  "typescript",
@@ -65,6 +65,7 @@
65
65
  "scripts": {
66
66
  "build": "tsup",
67
67
  "build:watch": "tsup --watch",
68
+ "build:analyze": "tsup && size-limit",
68
69
  "test": "jest",
69
70
  "test:watch": "jest --watch",
70
71
  "test:coverage": "jest --coverage",
@@ -72,22 +73,42 @@
72
73
  "lint:fix": "eslint src --ext .ts --fix",
73
74
  "typecheck": "tsc --noEmit",
74
75
  "clean": "rimraf dist",
76
+ "security:audit": "npm audit --audit-level=high",
77
+ "deps:outdated": "npm outdated || exit 0",
78
+ "deps:unused": "npx depcheck --ignores \"@types/jest,@types/node,rimraf,size-limit,@size-limit/preset-small-lib\"",
79
+ "deps:licenses": "npx license-checker --onlyAllow \"MIT;Apache-2.0;ISC;BSD-2-Clause;BSD-3-Clause;0BSD;Unlicense;CC0-1.0\"",
80
+ "deps:health": "npm run deps:outdated && npm run deps:unused",
75
81
  "prepublishOnly": "npm run clean && npm run build && npm run test",
76
82
  "version": "npm run build",
77
83
  "postversion": "git push && git push --tags"
78
84
  },
79
85
  "devDependencies": {
86
+ "@size-limit/preset-small-lib": "^12.0.0",
80
87
  "@types/jest": "^29.5.0",
81
- "@types/node": "^20.0.0",
88
+ "@types/node": "^20.19.32",
82
89
  "@typescript-eslint/eslint-plugin": "^7.0.0",
83
90
  "@typescript-eslint/parser": "^7.0.0",
84
91
  "eslint": "^8.57.0",
92
+ "eslint-plugin-sonarjs": "^3.0.6",
85
93
  "jest": "^29.7.0",
86
94
  "rimraf": "^5.0.0",
95
+ "size-limit": "^12.0.0",
87
96
  "ts-jest": "^29.1.0",
88
97
  "tsup": "^8.0.0",
89
98
  "typescript": "^5.4.0"
90
99
  },
91
- "peerDependencies": {},
92
- "dependencies": {}
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
+ ]
93
114
  }