]> git.ardis.lu - csvio/commitdiff
Set `types` key for TS badge on npm registry
authorArdis Lu <ardisglu@gmail.com>
Wed, 24 Jun 2026 06:58:01 +0000 (23:58 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 24 Jun 2026 06:58:01 +0000 (23:58 -0700)
Although this key is redundant with `exports`, it is still required to have the "TS" badge on the npm registry.

package.json

index 89a2b244a01ae9a6878750f2c123c76be3216172..a3b7bfb0e11b7fcb3fc3d0cd4be044b8d0d07dc4 100644 (file)
@@ -37,6 +37,7 @@
       "default": "./src/index.js"
     }
   },
+  "types": "./types/index.d.ts",
   "scripts": {
     "types": "tsc",
     "posttypes": "node ./npm/posttypes.js",
This page took 0.033343 seconds and 4 git commands to generate.