From ad3af6416c1924611c0fe39c8add340b3acb55c2 Mon Sep 17 00:00:00 2001 From: MikeDiam Date: Wed, 14 Aug 2024 13:46:14 +0300 Subject: [PATCH] [publish build] add publish build --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c28ec668..74290a53 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,12 @@ "homepage": "https://github.com/stakewise/v3-sdk", "scripts": { "test": "jest --clearCache && jest --onlyChanged", - "prepare": "npm run typechain && npm run graphql && husky install", - "build": "npm run test && npm run prepare && rm -rf ./dist && npm run rollup", + "prepare": "npm run typechain && npm run graphql && npm run test && husky install", + "build": "npm run prepare && rm -rf ./dist && npm run rollup", "typechain": "typechain --target ethers-v6 --out-dir src/contracts/types 'src/contracts/abis/*.json'", "graphql": "graphql-codegen && ts-node -O '{\"module\": \"commonjs\"}' ./scripts/generateGraphqlExports", - "rollup": "rollup --config rollup.config.js --bundleConfigAsCjs" + "rollup": "rollup --config rollup.config.js --bundleConfigAsCjs", + "publsih": "npm run build && npm publish" }, "files": [ "dist/",