Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ jobs:
with:
node-version: '22'

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Deps
run: |
yarn
yarn build
pnpm install
pnpm run build

- name: Test
run: |
npx --yes lerna@7 run test -- --passWithNoTests
pnpm run test
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
.eslintcache
*.log
pnpm-debug.log*
**/node_modules
coverage
packages/**/build
Expand All @@ -18,9 +19,7 @@ wallets/**/esm
packages/example/pages/tmp.tsx
packages/example/utils/tmp.ts
.idea
/.yarnrc
/.npmrc
/.parcel-cache
packages/my-example
wallets/social-login
.yarn
8 changes: 3 additions & 5 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"lerna": "7",
"conventionalCommits": true,
"npmClient": "yarn",
"npmClientArgs": [
"--no-lockfile"
],
"npmClient": "pnpm",
"packages": [
"packages/*",
"wallets/*",
Expand All @@ -23,4 +21,4 @@
"message": "chore(release): publish"
}
}
}
}
34 changes: 14 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
{
"name": "cosmos-kit",
"name": "cosmos-kit-repo",
"version": "2.0.0",
"publishConfig": {
"access": "restricted"
},
"private": true,
"packageManager": "pnpm@9.15.9",
"scripts": {
"commit": "git-cz",
"build": "lerna run prepare --stream",
"watch": "yarn watch",
"lint": "lerna run lint",
"format": "lerna run format",
"pretest": "yarn lint",
"test": "lerna run test",
"clear:mjs": "lerna run clean:mjs --stream",
"build": "pnpm -r --filter '!docs' run build",
"lint": "pnpm -r run lint",
"format": "pnpm -r run format",
"test": "pnpm -r --filter '!cosmos-kit' run test --passWithNoTests",
"clear:modules": "find . -name 'node_modules' -type d -prune -print | xargs rm -rf",
"clear:packages": "find -E ./packages -iregex '.*/packages/[-0-9a-z]*/(main|module|types|build|dist|cjs|esm)' -type d -prune -print | xargs rm -rf",
"clear:wallets": "find -E ./wallets -iregex '.*/wallets/[-0-9a-z]*/(main|module|types|build|dist|cjs|esm)' -type d -prune -print | xargs rm -rf",
"clear": "yarn clear:packages && yarn clear:wallets",
"clear:dist": "pnpm -r run clean",
"clear": "pnpm run clear:dist",
"pub:beta": "lerna publish prerelease --preid beta --allow-branch beta",
"pub": "lerna publish"
},
Expand All @@ -36,14 +29,15 @@
"lerna": "7.1.1",
"prettier": "2.7.1",
"publish-scripts": "0.1.0",
"rimraf": "3.0.2",
"makage": "^0.1.12",
"ts-jest": "29.4.5",
"typescript": "5.8.3"
},
"workspaces": [
"packages/*",
"wallets/*"
],
"pnpm": {
"overrides": {
"@chain-registry/types": "0.46.11"
}
},
"repository": {
"type": "git",
"url": "https://github.com/hyperweb-io/cosmos-kit#readme"
Expand Down
40 changes: 17 additions & 23 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,14 @@
],
"homepage": "https://github.com/hyperweb-io/cosmos-kit#readme",
"license": "SEE LICENSE IN LICENSE",
"main": "cjs/index.js",
"main": "index.js",
"module": "esm/index.js",
"types": "cjs/index.d.ts",
"directories": {
"lib": "src",
"test": "__tests__"
},
"files": [
"cjs",
"esm",
"!CHANGELOG.md",
"!LICENSE"
],
"types": "index.d.ts",
"scripts": {
"build:cjs": "yarn tsc -p tsconfig.json --outDir cjs --module commonjs || true",
"build:esm": "yarn tsc -p tsconfig.json --outDir esm --module es2022 || true",
"clean:cjs": "rimraf cjs",
"clean:esm": "rimraf esm",
"clean": "npm run clean:cjs && npm run clean:esm",
"build": "npm run clean && npm run build:cjs && npm run build:esm",
"prepare": "npm run build",
"clean": "makage clean",
"prepack": "npm run build",
"build": "makage build",
"build:dev": "makage build --dev",
"lint": "eslint --ext .tsx,.ts .",
"format": "eslint --ext .tsx,.ts --fix .",
"test": "jest",
Expand All @@ -51,7 +38,8 @@
"test:coverage": "jest --coverage"
},
"publishConfig": {
"access": "public"
"access": "public",
"directory": "dist"
},
"repository": {
"type": "git",
Expand All @@ -69,7 +57,9 @@
"url": "https://github.com/hyperweb-io/cosmos-kit/issues"
},
"devDependencies": {
"chain-registry": "^1.64.13"
"@types/react": "^19.2.14",
"chain-registry": "^1.64.13",
"makage": "^0.1.12"
},
"dependencies": {
"@chain-registry/client": "^1.49.11",
Expand All @@ -81,11 +71,15 @@
"@cosmjs/stargate": "^0.36.2",
"@dao-dao/cosmiframe": "^1.0.0",
"@walletconnect/types": "2.11.0",
"axios": "^1.13.6",
"bowser": "2.11.0",
"cosmjs-types": "^0.10.1",
"events": "3.3.0",
"nock": "13.5.4",
"uuid": "^9.0.1"
"uuid": "^9.0.1",
"react-icons": "^4.1.0"
},
"gitHead": "39fe5288455524191eb70ca82de6f2d7e6b3549a"
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0"
}
}
7 changes: 7 additions & 0 deletions packages/core/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ES2022",
"outDir": "./dist/esm"
}
}
16 changes: 12 additions & 4 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "src"
"outDir": "dist",
"rootDir": "src/"
},
"include": ["src/**/*"],
"exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"]
"include": [
"src/**/*.ts",
"src/**/*.tsx"
],
"exclude": [
"dist",
"node_modules",
"**/*.spec.*",
"**/*.test.*"
]
}
2 changes: 1 addition & 1 deletion packages/cosmos-kit/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports = {
// moduleNameMapper: {},

// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
// modulePathIgnorePatterns: [],
modulePathIgnorePatterns: ['dist/*'],

// Activates notifications for test results
// notify: false,
Expand Down
70 changes: 30 additions & 40 deletions packages/cosmos-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,23 @@
],
"homepage": "https://github.com/hyperweb-io/cosmos-kit#readme",
"license": "SEE LICENSE IN LICENSE",
"main": "cjs/index.js",
"main": "index.js",
"module": "esm/index.js",
"types": "cjs/index.d.ts",
"directories": {
"lib": "src",
"test": "test"
},
"files": [
"cjs",
"esm",
"!CHANGELOG.md",
"!LICENSE"
],
"types": "index.d.ts",
"scripts": {
"build:cjs": "yarn tsc -p tsconfig.json --outDir cjs --module commonjs || true",
"build:esm": "yarn tsc -p tsconfig.json --outDir esm --module es2022 || true",
"clean:cjs": "rimraf cjs",
"clean:esm": "rimraf esm",
"clean": "npm run clean:cjs && npm run clean:esm",
"build": "npm run clean && npm run build:cjs && npm run build:esm",
"prepare": "npm run build",
"clean": "makage clean",
"prepack": "npm run build",
"build": "rm -rf dist && (tsc -p tsconfig.json || true) && (tsc -p tsconfig.esm.json || true) && cp ../../LICENSE dist/ && cp package.json dist/ && cp README.md dist/",
"build:dev": "makage build --dev",
"lint": "eslint --ext .tsx,.ts .",
"format": "eslint --ext .tsx,.ts --fix .",
"test": "jest",
"test:watch": "jest --watch",
"test:debug": "node --inspect node_modules/.bin/jest --runInBand"
},
"publishConfig": {
"access": "public"
"access": "public",
"directory": "dist"
},
"repository": {
"type": "git",
Expand All @@ -71,25 +59,27 @@
"url": "https://github.com/hyperweb-io/cosmos-kit/issues"
},
"dependencies": {
"@cosmos-kit/bitgetwallet-extension": "^1.4.1",
"@cosmos-kit/cdcwallet": "^2.18.1",
"@cosmos-kit/coin98": "^2.16.1",
"@cosmos-kit/compass": "^2.16.1",
"@cosmos-kit/cosmostation": "^2.17.1",
"@cosmos-kit/ctrl": "^2.16.1",
"@cosmos-kit/exodus": "^2.15.1",
"@cosmos-kit/fin": "^2.16.1",
"@cosmos-kit/galaxy-station": "^2.16.1",
"@cosmos-kit/gatewallet-extension": "1.1.2",
"@cosmos-kit/keplr": "^2.17.1",
"@cosmos-kit/leap": "^2.17.1",
"@cosmos-kit/ledger": "^2.16.1",
"@cosmos-kit/okxwallet-extension": "^2.16.1",
"@cosmos-kit/omni": "^2.15.1",
"@cosmos-kit/owallet": "^2.17.1",
"@cosmos-kit/shell": "^2.16.1",
"@cosmos-kit/tailwind": "^1.10.1",
"@cosmos-kit/trust": "^2.16.1"
"@cosmos-kit/bitgetwallet-extension": "workspace:*",
"@cosmos-kit/cdcwallet": "workspace:*",
"@cosmos-kit/coin98": "workspace:*",
"@cosmos-kit/compass": "workspace:*",
"@cosmos-kit/cosmostation": "workspace:*",
"@cosmos-kit/ctrl": "workspace:*",
"@cosmos-kit/exodus": "workspace:*",
"@cosmos-kit/fin": "workspace:*",
"@cosmos-kit/galaxy-station": "workspace:*",
"@cosmos-kit/gatewallet-extension": "workspace:*",
"@cosmos-kit/keplr": "workspace:*",
"@cosmos-kit/leap": "workspace:*",
"@cosmos-kit/ledger": "workspace:*",
"@cosmos-kit/okxwallet-extension": "workspace:*",
"@cosmos-kit/omni": "workspace:*",
"@cosmos-kit/owallet": "workspace:*",
"@cosmos-kit/shell": "workspace:*",
"@cosmos-kit/tailwind": "workspace:*",
"@cosmos-kit/trust": "workspace:*"
},
"gitHead": "39fe5288455524191eb70ca82de6f2d7e6b3549a"
"devDependencies": {
"makage": "^0.1.12"
}
}
7 changes: 7 additions & 0 deletions packages/cosmos-kit/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ES2022",
"outDir": "./dist/esm"
}
}
18 changes: 13 additions & 5 deletions packages/cosmos-kit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "src"
"outDir": "dist",
"rootDir": "src/"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
"include": [
"src/**/*.ts",
"src/**/*.tsx"
],
"exclude": [
"dist",
"node_modules",
"**/*.spec.*",
"**/*.test.*"
]
}
4 changes: 2 additions & 2 deletions packages/ins/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ module.exports = {
],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testPathIgnorePatterns: ['cjs/*', 'esm/*'],
modulePathIgnorePatterns: ['cjs/*', 'esm/*'],
testPathIgnorePatterns: ['cjs/*', 'esm/*', 'dist/*'],
modulePathIgnorePatterns: ['cjs/*', 'esm/*', 'dist/*'],
};
Loading
Loading