Skip to content

Commit 4cb19ea

Browse files
authored
Merge pull request #38 from MultipleChain/alpha
pnpm 9
2 parents b29d82a + 1b09f68 commit 4cb19ea

27 files changed

Lines changed: 24442 additions & 11854 deletions

.github/workflows/npm-publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- name: Publish if version changed
2828
run: |
29-
npm install -g pnpm@11.6.0
29+
npm install -g pnpm@9
3030
pnpm install
3131
3232
for dir in packages/*/ packages/networks/*/; do
@@ -42,7 +42,7 @@ jobs:
4242
4343
if [ "$PREVIOUS_VERSION" != "$CURRENT_VERSION" ]; then
4444
echo "Version changed for $PACKAGE_NAME from $PREVIOUS_VERSION to $CURRENT_VERSION"
45-
npm publish
45+
pnpm install && npm publish
4646
fi
4747
else
4848
echo "package.json not found in $dir"

.github/workflows/test-and-lint.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,17 @@ jobs:
2424

2525
- name: Install dependencies
2626
run: |
27-
npm install -g pnpm@11.6.0
27+
npm install -g pnpm@9
2828
pnpm install
2929
30+
for dir in packages/*/ packages/networks/*/; do
31+
if [ -d "$dir" ] && [ "$(basename "$dir")" != "boilerplate" ]; then
32+
cd "$dir" || exit
33+
pnpm install
34+
cd - || exit
35+
fi
36+
done
37+
3038
- name: Runt lint
3139
run: npm run lint
3240

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"name": "js",
33
"version": "0.0.0",
4-
"private": true,
54
"type": "module",
6-
"packageManager": "pnpm@11.6.0",
75
"scripts": {
86
"dev": "vite",
97
"test": "vitest",
@@ -12,8 +10,8 @@
1210
"format": "prettier --write packages/",
1311
"lint": "eslint . --ext .ts --ignore-path .gitignore",
1412
"lint:fix": "eslint . --ext .ts --ignore-path .gitignore --fix",
15-
"install:all": "pnpm install",
16-
"build:all": "pnpm -r --if-present --filter './packages/**' --filter '!./packages/networks/boilerplate' run build"
13+
"install:all": "pnpm install && for dir in packages/*/ packages/networks/*/; do if [ -d \"$dir\" ] && [ \"$(basename \"$dir\")\" != \"boilerplate\" ]; then cd \"$dir\" && pnpm install && cd -; fi; done",
14+
"build:all": "for dir in packages/*/ packages/networks/*/; do if [ -f \"$dir/package.json\" ] && [ \"$(basename \"$dir\")\" != \"boilerplate\" ] && grep -q '\"build\":' \"$dir/package.json\" 2>/dev/null; then (cd \"$dir\" && pnpm run build) || exit 1; fi; done"
1715
},
1816
"devDependencies": {
1917
"@rollup/plugin-strip": "^3.0.4",
@@ -43,5 +41,6 @@
4341
},
4442
"dependencies": {
4543
"@multiplechain/utils": "^0.1.24"
46-
}
44+
},
45+
"packageManager": "pnpm@9.15.9+sha512.68046141893c66fad01c079231128e9afb89ef87e2691d69e4d40eee228988295fd4682181bae55b58418c3a253bde65a505ec7c5f9403ece5cc3cd37dcf2531"
4746
}

packages/networks/bitcoin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multiplechain/bitcoin",
3-
"version": "0.4.26",
3+
"version": "0.4.27",
44
"type": "module",
55
"main": "dist/index.cjs",
66
"module": "dist/index.es.js",

0 commit comments

Comments
 (0)