Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated exports #6

Merged
merged 4 commits into from
May 3, 2024
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
14 changes: 11 additions & 3 deletions .github/workflows/test-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: Install dependencies
run: |
npm install -g pnpm
pnpm install

for dir in packages/*/ packages/networks/*/; do
if [ -d "$dir" ] && [ "$(basename "$dir")" != "boilerplate" ]; then
Expand All @@ -34,11 +35,18 @@ jobs:
fi
done

- name: Run test
run: npm run test

- name: Runt lint
run: npm run lint

- name: Run test
run: npm run coverage

- name: Code coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: MultipleChain/js
files: './coverage/clover.xml'

- name: Set PR status
if: ${{ github.event_name == 'pull_request' }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pnpm-debug.log*
lerna-debug.log*
.pnpm-store

coverage
node_modules
dist
dist-ssr
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"type": "module",
"scripts": {
"test": "vitest",
"coverage": "vitest run --coverage",
"format": "prettier --write packages/",
"lint": "eslint . --ext .ts --ignore-path .gitignore"
},
"devDependencies": {
"@types/node": "^20.11.20",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@vitest/coverage-istanbul": "^1.5.3",
"esbuild": "^0.20.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/networks/boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
}
},
"./node": {
"require": "./dist/index.cjs",
"default": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./browser": {
"require": "./dist/index.umd.js",
"default": "./dist/index.es.js",
"types": "./dist/browser/index.d.ts"
}
},
Expand Down
6 changes: 3 additions & 3 deletions packages/networks/evm-chains/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiplechain/evm-chains",
"version": "0.3.45",
"version": "0.3.46",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.es.js",
Expand All @@ -19,11 +19,11 @@
}
},
"./node": {
"require": "./dist/index.cjs",
"default": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./browser": {
"require": "./dist/index.umd.js",
"default": "./dist/index.es.js",
"types": "./dist/browser/index.d.ts"
}
},
Expand Down
6 changes: 3 additions & 3 deletions packages/networks/tron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiplechain/tron",
"version": "0.2.10",
"version": "0.2.11",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.es.js",
Expand All @@ -19,11 +19,11 @@
}
},
"./node": {
"require": "./dist/index.cjs",
"default": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./browser": {
"require": "./dist/index.umd.js",
"default": "./dist/index.es.js",
"types": "./dist/browser/index.d.ts"
}
},
Expand Down
Loading