From d5a50c711ee52db6d4fe06a57721d206c751b757 Mon Sep 17 00:00:00 2001 From: Devin Moss Date: Mon, 3 Jul 2023 12:26:23 -0500 Subject: [PATCH] Add prepublishOnly and postpack scripts --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 681cf40..564f81d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "test": "jest -i --restoreMocks", "unit-test": "jest --testPathPattern=tests/unit", "integration-test": "jest --testPathPattern=tests/integration", - "lint": "eslint lib/** tests/**" + "lint": "eslint lib/** tests/**", + "prepublishOnly": "npm run test && npm run build", + "postpack": "git tag -a $npm_package_version -m $npm_package_version && git push origin $npm_package_version" }, "dependencies": { "@dxfeed/api": "^1.1.0",