Skip to content

Commit

Permalink
fix: Added precommit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Eengineer1 committed Feb 5, 2025
1 parent 0acb006 commit c8bf8de
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 24 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node tidy-dependencies.js && npm i --save && sleep 5
22 changes: 19 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 22 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
},
"scripts": {
"clean": "rm -rf node_modules && rm -rf esm/node_modules && rm -rf cjs/node_modules && rm -f package-lock.json",
"build": "rm -rf build && npm run build:esm && npm run build:cjs && npm run build:types && cp preinstall.js build/preinstall.js && cp preinstall.js build/esm/preinstall.js && cp preinstall.js build/cjs/preinstall.js",
"build": "rm -rf build && npm run build:esm && npm run build:cjs && npm run build:types",
"build:esm": "cd esm && tsc -p tsconfig.json && cp package.json ../build/esm/package.json",
"build:cjs": "cd cjs && tsc -p tsconfig.json && cp package.json ../build/cjs/package.json",
"build:types": "cd esm && tsc -p tsconfig.types.json",
"test": "npm run test:esm && npm run test:cjs",
"test:esm": "cd esm && npm test",
"test:cjs": "cd cjs && npm test",
"format": "prettier --write '**/*.{js,ts,cjs,mjs,json}'",
"preinstall": "node preinstall.js"
"prepare": "husky"
},
"workspaces": [
"esm",
Expand Down Expand Up @@ -65,6 +65,7 @@
"@semantic-release/release-notes-generator": "^12.1.0",
"@types/jest": "^29.5.12",
"conventional-changelog-conventionalcommits": "^7.0.2",
"husky": "^9.1.7",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"semantic-release": "^22.0.12",
Expand All @@ -77,43 +78,43 @@
},
"dependencies": {
"@cheqd/ts-proto": "^4.0.0",
"@cosmjs/amino": "^0.32.4",
"@cosmjs/crypto": "^0.32.4",
"@cosmjs/encoding": "^0.32.4",
"@cosmjs/math": "^0.32.4",
"@cosmjs/proto-signing": "^0.32.4",
"@cosmjs/stargate": "^0.32.4",
"@cosmjs/tendermint-rpc": "^0.32.4",
"@cosmjs/utils": "^0.32.4",
"@stablelib/ed25519": "^1.0.3",
"@types/secp256k1": "^4.0.6",
"cosmjs-types": "^0.9.0",
"did-jwt": "^8.0.4",
"did-resolver": "^4.1.0",
"exponential-backoff": "^3.1.1",
"file-type": "^19.5.0",
"multiformats": "^13.3.0",
"secp256k1": "^5.0.0",
"uuid": "^10.0.0",
"@cheqd/ts-proto-cjs": "npm:@cheqd/ts-proto@~2.4.0",
"@cosmjs/amino": "^0.32.4",
"@cosmjs/amino-cjs": "npm:@cosmjs/amino@~0.30.1",
"@cosmjs/crypto": "^0.32.4",
"@cosmjs/crypto-cjs": "npm:@cosmjs/crypto@~0.30.1",
"@cosmjs/encoding": "^0.32.4",
"@cosmjs/encoding-cjs": "npm:@cosmjs/encoding@~0.30.1",
"@cosmjs/math": "^0.32.4",
"@cosmjs/math-cjs": "npm:@cosmjs/math@~0.30.1",
"@cosmjs/proto-signing": "^0.32.4",
"@cosmjs/proto-signing-cjs": "npm:@cosmjs/proto-signing@~0.30.1",
"@cosmjs/stargate": "^0.32.4",
"@cosmjs/stargate-cjs": "npm:@cosmjs/stargate@~0.30.1",
"@cosmjs/tendermint-rpc": "^0.32.4",
"@cosmjs/tendermint-rpc-cjs": "npm:@cosmjs/tendermint-rpc@~0.30.1",
"@cosmjs/utils": "^0.32.4",
"@cosmjs/utils-cjs": "npm:@cosmjs/utils@~0.30.1",
"@stablelib/ed25519": "^1.0.3",
"@stablelib/ed25519-cjs": "npm:@stablelib/ed25519@^1.0.3",
"@types/secp256k1": "^4.0.6",
"@types/secp256k1-cjs": "npm:@types/secp256k1@^4.0.6",
"cosmjs-types": "^0.9.0",
"cosmjs-types-cjs": "npm:cosmjs-types@^0.7.2",
"did-jwt": "^8.0.4",
"did-jwt-cjs": "npm:did-jwt@^8.0.4",
"did-resolver": "^4.1.0",
"did-resolver-cjs": "npm:did-resolver@^4.1.0",
"exponential-backoff": "^3.1.1",
"exponential-backoff-cjs": "npm:exponential-backoff@^3.1.1",
"file-type": "^19.5.0",
"file-type-cjs": "npm:file-type@^16.5.4",
"long-cjs": "npm:long@^4.0.0",
"multiformats": "^13.3.0",
"multiformats-cjs": "npm:multiformats@^9.9.0",
"secp256k1": "^5.0.0",
"secp256k1-cjs": "npm:secp256k1@^5.0.0",
"uuid": "^10.0.0",
"uuid-cjs": "npm:uuid@^10.0.0"
}
}
}
File renamed without changes.

0 comments on commit c8bf8de

Please sign in to comment.