also looking at this
chore(deps): update all non-major dependencies
#418
11 files
+442
-40
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -81,7 +81,22 @@ jobs: | ||
| 81 | 81 | run: bun install |
| 82 | 82 | |
| 83 | 83 | - name: Unit Test |
| 84 | run: bun test | |
| 84 | run: bun test --coverage 2>&1 | tee coverage-output.txt | |
| 85 | ||
| 86 | - name: Check Coverage Threshold | |
| 87 | run: | | |
| 88 | if grep -q "All files" coverage-output.txt; then | |
| 89 | LINE_COV=$(grep "All files" coverage-output.txt | awk '{print $4}' | tr -d '%') | |
| 90 | echo "Line coverage: ${LINE_COV}%" | |
| 91 | THRESHOLD=50 | |
| 92 | if [ "$(echo "${LINE_COV} < ${THRESHOLD}" | bc -l)" -eq 1 ]; then | |
| 93 | echo "::error::Line coverage ${LINE_COV}% is below threshold ${THRESHOLD}%" | |
| 94 | exit 1 | |
| 95 | fi | |
| 96 | echo "Coverage ${LINE_COV}% meets threshold ${THRESHOLD}%" | |
| 97 | else | |
| 98 | echo "Coverage report not found — skipping threshold check" | |
| 99 | fi | |
| 85 | 100 | |
| 86 | 101 | publish-commit: |
| 87 | 102 | runs-on: ubuntu-latest |
| @@ -35,8 +35,25 @@ jobs: | ||
| 35 | 35 | - name: Install Dependencies |
| 36 | 36 | run: bun install |
| 37 | 37 | |
| 38 | - name: Build All Packages | |
| 39 | run: bun run build | |
| 40 | ||
| 41 | - name: Compile CLI Binaries | |
| 42 | run: cd packages/ts-tokens && bun run compile:all | |
| 43 | ||
| 44 | - name: Zip Binaries | |
| 45 | run: | | |
| 46 | cd packages/ts-tokens/bin | |
| 47 | for f in tokens-linux-x64 tokens-linux-arm64 tokens-darwin-x64 tokens-darwin-arm64; do | |
| 48 | [ -f "$f" ] && zip "${f}.zip" "$f" | |
| 49 | done | |
| 50 | [ -f "tokens-windows-x64.exe" ] && zip "tokens-windows-x64.zip" "tokens-windows-x64.exe" | |
| 51 | ||
| 38 | 52 | - name: Publish to npm |
| 39 | run: ./scripts/publish.sh | |
| 53 | run: | | |
| 54 | cd packages/ts-tokens && bun publish --access public --provenance | |
| 55 | cd ../react && bun publish --access public --provenance | |
| 56 | cd ../vue && bun publish --access public --provenance | |
| 40 | 57 | env: |
| 41 | 58 | BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
| 42 | 59 | |
| @@ -45,19 +62,10 @@ jobs: | ||
| 45 | 62 | uses: stacksjs/action-releaser@v1.2.9 |
| 46 | 63 | with: |
| 47 | 64 | files: | |
| 48 | ./packages/tlsx/bin/tlsx-linux-x64.zip | |
| 49 | ./packages/tlsx/bin/tlsx-linux-arm64.zip | |
| 50 | ./packages/tlsx/bin/tlsx-windows-x64.zip | |
| 51 | ./packages/tlsx/bin/tlsx-darwin-x64.zip | |
| 52 | ./packages/tlsx/bin/tlsx-darwin-arm64.zip | |
| 53 | # --- Homebrew tap update support --- | |
| 54 | # Path to your Homebrew formula template (update this path as needed) | |
| 55 | # homebrewFormula: .github/homebrew-formula.rb | |
| 56 | # The owner/repo of your Homebrew tap (update this value as needed) | |
| 57 | # homebrewRepo: stacksjs/homebrew-tap | |
| 58 | # Optionally uncomment and set these if you need custom values: | |
| 59 | # homebrewBranch: main | |
| 60 | # homebrewPath: Formula | |
| 61 | # homebrewCommitFormat: "update: {{ formula }} to {{ version }}" | |
| 65 | ./packages/ts-tokens/bin/tokens-linux-x64.zip | |
| 66 | ./packages/ts-tokens/bin/tokens-linux-arm64.zip | |
| 67 | ./packages/ts-tokens/bin/tokens-windows-x64.zip | |
| 68 | ./packages/ts-tokens/bin/tokens-darwin-x64.zip | |
| 69 | ./packages/ts-tokens/bin/tokens-darwin-arm64.zip | |
| 62 | 70 | env: |
| 63 | 71 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "name": "react-tokens", |
| 3 | 3 | "type": "module", |
| 4 | "version": "0.0.0", | |
| 4 | "version": "0.1.0", | |
| 5 | 5 | "description": "React components for Solana tokens and NFTs", |
| 6 | 6 | "author": "Chris Breuer <chris@stacksjs.org>", |
| 7 | 7 | "license": "MIT", |
| @@ -46,7 +46,7 @@ | ||
| 46 | 46 | "build": "bun build ./src/index.ts --outdir ./dist --target browser", |
| 47 | 47 | "lint": "bunx --bun eslint .", |
| 48 | 48 | "lint:fix": "bunx --bun eslint . --fix", |
| 49 | "release": "bun publish --access public", | |
| 49 | "release": "bun publish --access public --provenance", | |
| 50 | 50 | "prepublishOnly": "bun --bun run build", |
| 51 | 51 | "test": "bun test", |
| 52 | 52 | "typecheck": "bun --bun tsc --noEmit" |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "name": "ts-tokens", |
| 3 | 3 | "type": "module", |
| 4 | "version": "0.0.0", | |
| 4 | "version": "0.1.0", | |
| 5 | 5 | "description": "A TypeScript library for managing fungible and non-fungible tokens on Solana.", |
| 6 | 6 | "author": "Chris Breuer <chris@stacksjs.org>", |
| 7 | 7 | "license": "MIT", |
| @@ -30,6 +30,110 @@ | ||
| 30 | 30 | "types": "./dist/index.d.ts", |
| 31 | 31 | "import": "./dist/index.js" |
| 32 | 32 | }, |
| 33 | "./token": { | |
| 34 | "types": "./dist/token/index.d.ts", | |
| 35 | "import": "./dist/token/index.js" | |
| 36 | }, | |
| 37 | "./nft": { | |
| 38 | "types": "./dist/nft/index.d.ts", | |
| 39 | "import": "./dist/nft/index.js" | |
| 40 | }, | |
| 41 | "./config": { | |
| 42 | "types": "./dist/config/config.d.ts", | |
| 43 | "import": "./dist/config/config.js" | |
| 44 | }, | |
| 45 | "./types": { | |
| 46 | "types": "./dist/types/index.d.ts", | |
| 47 | "import": "./dist/types/index.js" | |
| 48 | }, | |
| 49 | "./utils": { | |
| 50 | "types": "./dist/utils/index.d.ts", | |
| 51 | "import": "./dist/utils/index.js" | |
| 52 | }, | |
| 53 | "./drivers": { | |
| 54 | "types": "./dist/drivers/index.d.ts", | |
| 55 | "import": "./dist/drivers/index.js" | |
| 56 | }, | |
| 57 | "./storage": { | |
| 58 | "types": "./dist/storage/index.d.ts", | |
| 59 | "import": "./dist/storage/index.js" | |
| 60 | }, | |
| 61 | "./programs": { | |
| 62 | "types": "./dist/programs/index.d.ts", | |
| 63 | "import": "./dist/programs/index.js" | |
| 64 | }, | |
| 65 | "./security": { | |
| 66 | "types": "./dist/security/index.d.ts", | |
| 67 | "import": "./dist/security/index.js" | |
| 68 | }, | |
| 69 | "./staking": { | |
| 70 | "types": "./dist/staking/index.d.ts", | |
| 71 | "import": "./dist/staking/index.js" | |
| 72 | }, | |
| 73 | "./batch": { | |
| 74 | "types": "./dist/batch/index.d.ts", | |
| 75 | "import": "./dist/batch/index.js" | |
| 76 | }, | |
| 77 | "./multisig": { | |
| 78 | "types": "./dist/multisig/index.d.ts", | |
| 79 | "import": "./dist/multisig/index.js" | |
| 80 | }, | |
| 81 | "./governance": { | |
| 82 | "types": "./dist/governance/index.d.ts", | |
| 83 | "import": "./dist/governance/index.js" | |
| 84 | }, | |
| 85 | "./defi": { | |
| 86 | "types": "./dist/defi/index.d.ts", | |
| 87 | "import": "./dist/defi/index.js" | |
| 88 | }, | |
| 89 | "./marketplace": { | |
| 90 | "types": "./dist/marketplace/index.d.ts", | |
| 91 | "import": "./dist/marketplace/index.js" | |
| 92 | }, | |
| 93 | "./indexer": { | |
| 94 | "types": "./dist/indexer/index.d.ts", | |
| 95 | "import": "./dist/indexer/index.js" | |
| 96 | }, | |
| 97 | "./wallets": { | |
| 98 | "types": "./dist/wallets/index.d.ts", | |
| 99 | "import": "./dist/wallets/index.js" | |
| 100 | }, | |
| 101 | "./analytics": { | |
| 102 | "types": "./dist/analytics/index.d.ts", | |
| 103 | "import": "./dist/analytics/index.js" | |
| 104 | }, | |
| 105 | "./fluent": { | |
| 106 | "types": "./dist/fluent/index.d.ts", | |
| 107 | "import": "./dist/fluent/index.js" | |
| 108 | }, | |
| 109 | "./simple-nft": { | |
| 110 | "types": "./dist/simple-nft/index.d.ts", | |
| 111 | "import": "./dist/simple-nft/index.js" | |
| 112 | }, | |
| 113 | "./pnft": { | |
| 114 | "types": "./dist/pnft/index.d.ts", | |
| 115 | "import": "./dist/pnft/index.js" | |
| 116 | }, | |
| 117 | "./events": { | |
| 118 | "types": "./dist/events/index.d.ts", | |
| 119 | "import": "./dist/events/index.js" | |
| 120 | }, | |
| 121 | "./treasury": { | |
| 122 | "types": "./dist/treasury/index.d.ts", | |
| 123 | "import": "./dist/treasury/index.js" | |
| 124 | }, | |
| 125 | "./voting": { | |
| 126 | "types": "./dist/voting/index.d.ts", | |
| 127 | "import": "./dist/voting/index.js" | |
| 128 | }, | |
| 129 | "./i18n": { | |
| 130 | "types": "./dist/i18n/index.d.ts", | |
| 131 | "import": "./dist/i18n/index.js" | |
| 132 | }, | |
| 133 | "./debug": { | |
| 134 | "types": "./dist/debug/index.d.ts", | |
| 135 | "import": "./dist/debug/index.js" | |
| 136 | }, | |
| 33 | 137 | "./*": { |
| 34 | 138 | "import": "./dist/*" |
| 35 | 139 | } |
| @@ -55,7 +159,7 @@ | ||
| 55 | 159 | "lint": "bunx --bun eslint --flag unstable_ts_config .", |
| 56 | 160 | "lint:fix": "bunx --bun eslint --flag unstable_ts_config . --fix", |
| 57 | 161 | "prepublishOnly": "bun --bun run build && bun run compile:all", |
| 58 | "release": "bun publish --access public", | |
| 162 | "release": "bun publish --access public --provenance", | |
| 59 | 163 | "test": "bun test", |
| 60 | 164 | "typecheck": "bun --bun tsc --noEmit" |
| 61 | 165 | }, |
| @@ -71,6 +175,6 @@ | ||
| 71 | 175 | "bunfig": "^0.5.0" |
| 72 | 176 | }, |
| 73 | 177 | "lint-staged": { |
| 74 | "*.{js,ts}": "bunx --bun eslint --flag unstable_ts_config . --fix" | |
| 178 | "*.{js,ts}": "bunx --bun eslint --flag unstable_ts_config --fix" | |
| 75 | 179 | } |
| 76 | 180 | } |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "name": "vue-tokens", |
| 3 | 3 | "type": "module", |
| 4 | "version": "0.0.0", | |
| 4 | "version": "0.1.0", | |
| 5 | 5 | "description": "Vue 3 components for Solana tokens and NFTs", |
| 6 | 6 | "author": "Chris Breuer <chris@stacksjs.org>", |
| 7 | 7 | "license": "MIT", |
| @@ -47,7 +47,7 @@ | ||
| 47 | 47 | "build": "bun build ./src/index.ts --outdir ./dist --target browser", |
| 48 | 48 | "lint": "bunx --bun eslint .", |
| 49 | 49 | "lint:fix": "bunx --bun eslint . --fix", |
| 50 | "release": "bun publish --access public", | |
| 50 | "release": "bun publish --access public --provenance", | |
| 51 | 51 | "prepublishOnly": "bun --bun run build", |
| 52 | 52 | "test": "bun test", |
| 53 | 53 | "typecheck": "bun --bun tsc --noEmit" |