Explorar el Código

Point to correct location for TypeScript definitions (#18)

Steven Luscher hace 1 año
padre
commit
8fb8cecf16

+ 5 - 0
.changeset/neat-brooms-crash.md

@@ -0,0 +1,5 @@
+---
+"create-solana-program": patch
+---
+
+Point to correct location for TypeScript definitions

+ 4 - 4
template/clients/js/clients/js/package.json.njk

@@ -3,12 +3,12 @@
   "version": "0.0.0",
   "description": "JavaScript client for the {{ programName | titleCase }} program",
   "sideEffects": false,
-  "module": "dist/src/index.mjs",
-  "main": "dist/src/index.js",
-  "types": "dist/types/index.d.ts",
+  "module": "./dist/src/index.mjs",
+  "main": "./dist/src/index.js",
+  "types": "./dist/types/src/index.d.ts",
   "exports": {
     ".": {
-      "types": "./dist/src/index.d.ts",
+      "types": "./dist/types/src/index.d.ts",
       "import": "./dist/src/index.mjs",
       "require": "./dist/src/index.js"
     }