Browse Source

Add prepublishOnly script to JS client

Loris Leiva 1 year ago
parent
commit
41d47d0633

+ 5 - 0
.changeset/sour-mirrors-raise.md

@@ -0,0 +1,5 @@
+---
+"create-solana-program": patch
+---
+
+Add prepublishOnly script to JS client

+ 2 - 1
template/clients/js/clients/js/package.json.njk

@@ -25,7 +25,8 @@
     "lint": "eslint --ext js,ts,tsx src",
     "lint:fix": "eslint --fix --ext js,ts,tsx src",
     "format": "prettier --check src test",
-    "format:fix": "prettier --write src test"
+    "format:fix": "prettier --write src test",
+    "prepublishOnly": "pnpm build"
   },
   "publishConfig": {
     "access": "public",