Skip to content

Commit

Permalink
feat: Bump CosmJS for SDK 0.50.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
clockworkgr committed Dec 5, 2023
1 parent ccc7d5d commit 17ebfc2
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 29 deletions.
10 changes: 5 additions & 5 deletions packages/react-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"postinstall": "node postinstall.cjs",
"preinstall": "node preinstall.cjs",
"prepare": "node prepare.cjs"
},
"engines": {
"npm": ">=8.0.0",
"node": ">=16.0.0"
},
"dependencies": {
"@cosmjs/encoding": "^0.31.1",
"@cosmjs/stargate": "^0.31.1",
"@cosmjs/encoding": "^0.32.1",
"@cosmjs/stargate": "^0.32.1",
"@headlessui/react": "^1.7.3",
"@headlessui/tailwindcss": "^0.1.1",
"@ignt/react-library": "^0.5.1",
Expand All @@ -36,8 +36,8 @@
"react-router-dom": "^6.4.2"
},
"devDependencies": {
"@cosmjs/proto-signing": "^0.31.1",
"@keplr-wallet/types": "^0.11.14",
"@cosmjs/proto-signing": "^0.32.1",
"@keplr-wallet/types": "^0.13.44",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rushstack/eslint-patch": "^1.2.0",
"@types/crypto-js": "^4.1.1",
Expand Down
10 changes: 0 additions & 10 deletions packages/react-template/postinstall.cjs

This file was deleted.

12 changes: 12 additions & 0 deletions packages/react-template/preinstall.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* eslint-env node */
const pkgjson = require("./package.json");
var spawnSync = require("child_process").spawnSync;

for (let pkg in pkgjson.dependencies) {
if (pkgjson.dependencies[pkg].startsWith("file:")) {
let relPath = pkgjson.dependencies[pkg].substring(5);
console.log(`PRE-INSTALL Installing & building ${pkg} prior to webapp install`);
spawnSync("npm", ['install'], {cwd: relPath, stdio: "inherit" });
spawnSync("npm", ['run','build'], {cwd: relPath, stdio: "inherit" });
}
}
10 changes: 5 additions & 5 deletions packages/vue-template/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"@cosmjs/encoding": "^0.31.1",
"@cosmjs/stargate": "^0.31.1",
"@cosmjs/encoding": "^0.32.1",
"@cosmjs/stargate": "^0.32.1",
"@headlessui/tailwindcss": "^0.1.1",
"@headlessui/vue": "^1.7.3",
"@ignt/vue-library": "^0.5.1",
Expand All @@ -18,8 +18,8 @@
"vue-router": "^4.1.6"
},
"devDependencies": {
"@cosmjs/proto-signing": "^0.31.1",
"@keplr-wallet/types": "^0.11.14",
"@cosmjs/proto-signing": "^0.32.1",
"@keplr-wallet/types": "^0.12.44",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rushstack/eslint-patch": "^1.2.0",
"@types/crypto-js": "^4.1.1",
Expand Down Expand Up @@ -50,7 +50,7 @@
"build-only": "vite build",
"dev": "vite",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"postinstall": "node postinstall.js",
"preinstall": "node preinstall.js",
"prepare": "node prepare.js",
"preview": "vite preview --port 4173",
"type-check": "vue-tsc --noEmit"
Expand Down
9 changes: 0 additions & 9 deletions packages/vue-template/postinstall.js

This file was deleted.

12 changes: 12 additions & 0 deletions packages/vue-template/preinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* eslint-env node */
const pkgjson = require("./package.json");
var spawnSync = require("child_process").spawnSync;

for (let pkg in pkgjson.dependencies) {
if (pkgjson.dependencies[pkg].startsWith("file:")) {
let relPath = pkgjson.dependencies[pkg].substring(5);
console.log(`PRE-INSTALL Installing & building ${pkg} prior to webapp install`);
spawnSync("npm", ['install'], {cwd: relPath, stdio: "inherit" });
spawnSync("npm", ['run','build'], {cwd: relPath, stdio: "inherit" });
}
}

0 comments on commit 17ebfc2

Please sign in to comment.