@darthcav/ts-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 (2) hide show
  1. package/README.md +4 -1
  2. package/package.json +7 -5
package/README.md CHANGED
@@ -397,6 +397,9 @@ npm run typecheck
397
397
  # Build (compile to JavaScript)
398
398
  npm run build
399
399
 
400
+ # Build, then check that every package export resolves
401
+ npm run check:exports
402
+
400
403
  # Run tests
401
404
  npm test
402
405
 
@@ -439,7 +442,7 @@ public/ # Documentation output (generated)
439
442
 
440
443
  [node-version]: https://img.shields.io/badge/node-%3E%3D26-orange.svg?style=flat-square
441
444
  [node-url]: https://nodejs.org
442
- [version-image]: https://img.shields.io/badge/version-1.0.1-blue.svg?style=flat-square
445
+ [version-image]: https://img.shields.io/badge/version-1.0.2-blue.svg?style=flat-square
443
446
  [ci-badge]: https://github.com/darthcav/ts-utils/actions/workflows/tests.yml/badge.svg
444
447
  [coverage-badge]:
445
448
  https://codecov.io/github/darthcav/ts-utils/branch/dev/graph/badge.svg?token=RNEPER4KEI
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@darthcav/ts-utils",
3
3
  "description": "A collection of utility functions for TypeScript applications and modules",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "author": {
6
6
  "name": "darthcav",
7
7
  "url": "https://github.com/darthcav"
@@ -39,13 +39,14 @@
39
39
  "dist"
40
40
  ],
41
41
  "dependencies": {
42
- "@logtape/logtape": "2.4.2"
42
+ "@logtape/logtape": "2.4.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@biomejs/biome": "2.6.8",
46
- "@types/node": "26.6.6",
45
+ "@biomejs/biome": "2.6.9",
46
+ "@types/node": "26.6.11",
47
47
  "prettier": "3.10.1",
48
- "typedoc": "0.28.20"
48
+ "typedoc": "0.28.20",
49
+ "typescript": "6.0.3"
49
50
  },
50
51
  "repository": {
51
52
  "type": "git",
@@ -59,6 +60,7 @@
59
60
  "clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\"",
60
61
  "build": "npm run clean && tsc -p tsconfig.build.json",
61
62
  "prepare": "npm run build",
63
+ "check:exports": "npm run build && node --input-type=module -e \"import p from './package.json' with { type: 'json' }; import { existsSync } from 'node:fs'; for (const [k, t] of Object.entries(p.exports)) { for (const f of Object.values(t)) if (existsSync(f) === false) throw new Error(k + ': ' + f + ' is missing'); await import(p.name + k.slice(1)) } console.log('exports OK')\"",
62
64
  "\n===== Typecheck =====": "",
63
65
  "typecheck": "tsc --noEmit",
64
66
  "\n===== Test =====": "",