@williamthorsen/nmr-core 0.6.0 → 0.7.0

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.
package/README.md CHANGED
@@ -5,13 +5,15 @@ Shared utilities for node-monorepo-tools packages.
5
5
  This package serves as the shared library foundation for the monorepo. For the nmr CLI tool, see [`@williamthorsen/nmr`](../nmr).
6
6
 
7
7
  <!-- section:release-notes -->
8
- ## Release notes — v0.6.0 (2026-07-01)
8
+ ## Release notes — v0.7.0 (2026-07-13)
9
9
 
10
10
  ### 🎉 Features
11
11
 
12
- - 🚨 **Breaking:** Rebuild nmr-compile on a unified tsc emit (#455)
12
+ - 🚨 **Breaking:** Fail a package that declares types but ships none (#467)
13
13
 
14
- `nmr` now compiles a package's JavaScript and type declarations in one step, rewriting every import form — static, re-export, dynamic `import()`, bare side-effect, and tsconfig `paths` aliases — to runnable `.js` in both outputs. It now requires TypeScript 5.7 or newer as a peer dependency.
14
+ `nmr attw` now fails a package that claims to ship type declarations but ships none. Such a package used to pass, leaving every TypeScript consumer of it silently typed as `any`.
15
+
16
+ A package that ships working declarations found only by sitting beside its JavaScript entry point escapes the check, since it declares nothing. Add a `types` entry to bring it under the check.
15
17
  <!-- /section:release-notes -->
16
18
 
17
19
  ## Installation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/nmr-core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "private": false,
5
5
  "description": "Shared utilities for node-monorepo-tools packages",
6
6
  "keywords": [
@@ -21,7 +21,10 @@
21
21
  "author": "William Thorsen <william@thorsen.dev> (https://github.com/williamthorsen)",
22
22
  "type": "module",
23
23
  "exports": {
24
- ".": "./dist/esm/index.js"
24
+ ".": {
25
+ "types": "./dist/esm/index.d.ts",
26
+ "default": "./dist/esm/index.js"
27
+ }
25
28
  },
26
29
  "files": [
27
30
  "dist"
package/dist/esm/.cache DELETED
@@ -1 +0,0 @@
1
- 6527d41fa47a32d6ecdb2ccb3a4414d730a2cd4b9ca6522babe60a12bac7acf1