Skip to content

Commit 23f48d8

Browse files
authored
Merge pull request #53 from hyperweb-io/pnpm
pnpm
2 parents e8bf330 + b81a88f commit 23f48d8

File tree

88 files changed

+33526
-118118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+33526
-118118
lines changed

.github/workflows/run-tests-build.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ jobs:
5858
with:
5959
node-version: 20
6060

61-
- name: Set up Yarn
62-
uses: threeal/[email protected]
61+
- name: Setup pnpm
62+
uses: pnpm/action-setup@v4
63+
with:
64+
version: 9
6365

6466
- name: Get last git commit hash
6567
run: |
@@ -70,14 +72,14 @@ jobs:
7072
with:
7173
path: |
7274
${{ github.workspace }}/.next/cache
73-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ env.DIFF_HASH }}
75+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ env.DIFF_HASH }}
7476
restore-keys: |
75-
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
77+
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
7678
7779
- name: Build example project
7880
run: |
7981
echo "Building example: ${{ matrix.name }} in directory ${{ github.workspace }}/$ci_template_path/${{ matrix.name }}"
8082
cd ${{ github.workspace }}/$ci_template_path/${{ matrix.name }}
8183
ls -la
82-
yarn install
83-
yarn build
84+
pnpm install
85+
pnpm build

.github/workflows/run-tests.yaml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,72 +16,71 @@ jobs:
1616
with:
1717
node-version: 20
1818

19-
- name: Set up Yarn
20-
uses: threeal/setup-yarn-action@v2.0.0
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
2121
with:
22-
cache: false
22+
version: 9
2323

2424
- name: Install Dependencies
2525
run: |
26-
echo "YARN_ENABLE_IMMUTABLE_INSTALLS=false" >> $GITHUB_ENV
2726
npm install -g create-interchain-app
2827
2928
- name: authz
3029
run: |
3130
cia --example authz --name authz
3231
cd authz
33-
yarn build
32+
pnpm build
3433
3534
- name: ibc-asset-list
3635
run: |
3736
cia --example ibc-asset-list --name ibc-asset-list
3837
cd ibc-asset-list
39-
yarn build
38+
pnpm build
4039
4140
- name: injective
4241
run: |
4342
cia --example injective --name injective
4443
cd injective
45-
yarn build
44+
pnpm build
4645
4746
- name: injective-vue
4847
run: |
4948
cia --example injective-vue --name injective-vue
5049
cd injective-vue
51-
yarn build
50+
pnpm build
5251
5352
- name: stake-tokens
5453
run: |
5554
cia --example stake-tokens --name stake-tokens
5655
cd stake-tokens
57-
yarn build
56+
pnpm build
5857
5958
- name: vote-proposal
6059
run: |
6160
cia --example vote-proposal --name vote-proposal
6261
cd vote-proposal
63-
yarn build
62+
pnpm build
6463
6564
- name: chain-template
6665
run: |
6766
cia --template chain-template --name chain-template
6867
cd chain-template
69-
yarn build
68+
pnpm build
7069
7170
- name: connect-chain
7271
run: |
7372
cia --template connect-chain --name connect-chain
7473
cd connect-chain
75-
yarn build
74+
pnpm build
7675
7776
- name: connect-multi-chain
7877
run: |
7978
cia --template connect-multi-chain --name connect-multi-chain
8079
cd connect-multi-chain
81-
yarn build
80+
pnpm build
8281
8382
- name: website
8483
run: |
8584
cia --boilerplate website --name website
8685
cd website
87-
yarn build
86+
pnpm build

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"eslint.validate": ["javascript", "javascriptreact"],
1313
"files.exclude": {
14-
".yarn/*": true
14+
".pnpm-store/*": true
1515
},
1616
"typescript.tsdk": "node_modules/typescript/lib"
1717
}

.yarnrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Once the app is created, move into the app directory and start the development s
4545

4646
```sh
4747
cd my-app
48-
yarn && yarn dev
48+
pnpm install && pnpm dev
4949
```
5050

5151
Now your app should be running on `http://localhost:3000`!
@@ -107,7 +107,7 @@ npm init interchain-app
107107
### Yarn
108108

109109
```sh
110-
yarn create interchain-app
110+
pnpm create interchain-app
111111
```
112112

113113
## Examples
@@ -195,20 +195,20 @@ cia --name ibc-asset-list-example --example ibc-asset-list
195195

196196
## Development
197197

198-
Because the nature of how template boilerplates are generated, we generate `yarn.lock` files inside of nested packages so we can fix versions to avoid non-deterministic installations.
198+
Because the nature of how template boilerplates are generated, we generate `pnpm-lock.yaml` files inside of nested packages so we can fix versions to avoid non-deterministic installations.
199199

200-
When adding packages, yarn workspaces will use the root `yarn.lock`. It could be ideal to remove it while adding packages, and when publishing or pushing new changes, generating the nested lock files.
200+
When adding packages, pnpm workspaces will use the root `pnpm-lock.yaml`. It could be ideal to remove it while adding packages, and when publishing or pushing new changes, generating the nested lock files.
201201

202202
In the root, to remove all nested lock files:
203203

204204
```
205-
yarn locks:remove
205+
pnpm locks:remove
206206
```
207207

208-
When you need to remove/generate locks for all nested packages, simply run `yarn locks` in the root:
208+
When you need to remove/generate locks for all nested packages, simply run `pnpm locks` in the root:
209209

210210
```
211-
yarn locks
211+
pnpm locks
212212
```
213213

214214
## Interchain JavaScript Stack

boilerplates/lerna-module/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ npm install __MODULENAME__
2323
When first cloning the repo:
2424

2525
```sh
26-
yarn
26+
pnpm install
2727
# build the prod packages. When devs would like to navigate to the source code, this will only navigate from references to their definitions (.d.ts files) between packages.
28-
yarn build
28+
pnpm build
2929
```
3030

3131
Or if you want to make your dev process smoother, you can run:
3232

3333
```sh
34-
yarn
34+
pnpm install
3535
# build the dev packages with .map files, this enables navigation from references to their source code between packages.
36-
yarn build:dev
36+
pnpm build:dev
3737
```
3838

3939
## Interchain JavaScript Stack

boilerplates/lerna-tsx-module/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ npm install __MODULENAME__
2323
When first cloning the repo:
2424

2525
```
26-
yarn
27-
yarn build
26+
pnpm install
27+
pnpm build
2828
```
2929

3030
## Interchain JavaScript Stack

boilerplates/lerna-workspace/.github/run-tests.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ jobs:
1919
with:
2020
node-version: '20.x'
2121

22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 9
26+
2227
- name: Install Dependencies
23-
run: yarn install
28+
run: pnpm install
2429

2530
- name: Build Project
26-
run: yarn build
31+
run: pnpm build
2732

2833
- name: Run Parser Tests
29-
run: yarn workspace modulename test
34+
run: pnpm --filter modulename test
3035
working-directory: packages/modulefolder

boilerplates/lerna-workspace/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ npm install __MODULENAME__
2323
When first cloning the repo:
2424

2525
```sh
26-
yarn
26+
pnpm install
2727
# build the prod packages. When devs would like to navigate to the source code, this will only navigate from references to their definitions (.d.ts files) between packages.
28-
yarn build
28+
pnpm build
2929
```
3030

3131
Or if you want to make your dev process smoother, you can run:
3232

3333
```sh
34-
yarn
34+
pnpm install
3535
# build the dev packages with .map files, this enables navigation from references to their source code between packages.
36-
yarn build:dev
36+
pnpm build:dev
3737
```
3838

3939
## Interchain JavaScript Stack

0 commit comments

Comments
 (0)