[TS] Add a types tag in package.json to point to TS types
[ldk-java] / ts / package.json
index eda6aec0c8ee49e39fe3f7caa8d784f89840a93f..02a503a2a478c044fcc59e1847da4e77d6fe9790 100644 (file)
@@ -1,20 +1,27 @@
 {
   "name": "lightningdevkit",
-  "version": "0.0.104.0alpha0",
+  "version": "0.0.104.1alpha4",
   "description": "Lightning Development Kit",
-  "main": "index.mts",
+  "main": "index.mjs",
+  "types": "index.d.mts",
+  "type": "module",
   "directories": {
     "test": "test"
   },
   "files": [
-    "structs/*.mts",
-    "enums/*.mts",
-    "bindings.mts",
+    "structs/*.mjs",
+    "structs/*.d.mts",
+    "enums/*.mjs",
+    "enums/*.d.mts",
+    "bindings.mjs",
+    "bindings.d.mts",
+    "version.mjs",
     "liblightningjs.wasm",
     "tsconfig.json",
     "README.md",
-    "test/tests.mts",
-    "test/node.mjs"
+    "test/node.mjs",
+    "test/tests.mjs",
+    "test/tests.d.mts"
   ],
   "repository": {
     "type": "git",