Skip to content

Commit 3ad89d4

Browse files
committed
migrate from yarn to pnpm for package management
1 parent b5049c4 commit 3ad89d4

File tree

15 files changed

+6446
-5124
lines changed

15 files changed

+6446
-5124
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
node-version: 20.x
2222

2323
- name: Install Dependencies
24-
run: yarn
24+
run: pnpm
2525

2626
- name: Create Release Pull Request or Publish to npm
2727
id: changesets
2828
uses: changesets/action@v1
2929
with:
3030
# This expects you to have a script called release which does a build for your packages and calls changeset publish
31-
publish: yarn release
32-
version: yarn version:packages
31+
publish: pnpm release
32+
version: pnpm version:packages
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ These play really well together, but can also be used separately. Let's see how
3737
## `@bsmnt/storefront-hooks`
3838

3939
```zsh
40-
yarn add @bsmnt/storefront-hooks @tanstack/react-query
40+
pnpm add @bsmnt/storefront-hooks @tanstack/react-query
4141
```
4242

4343
This package exports:
@@ -327,7 +327,7 @@ export const {
327327
## `@bsmnt/sdk-gen`
328328

329329
```zsh
330-
yarn add @bsmnt/sdk-gen --dev
330+
pnpm add @bsmnt/sdk-gen --dev
331331
```
332332

333333
This package installs a CLI with a single command: `generate`. Running it will hit your GraphQL endpoint and generate TypeScript types from your queries and mutations. <b>It's powered by [Genql](https://genql.dev/), so be sure to check out [their docs](https://genql.dev/docs).</b>
@@ -354,15 +354,15 @@ module.exports = {
354354
And then you can run the generator:
355355

356356
```zsh
357-
yarn sdk-gen
357+
pnpm sdk-gen
358358
```
359359

360360
This will look inside `./sdk-gen/` for a `config.js` file, and for all your `.{graphql,gql}` files under that directory.
361361

362362
If you want to use a custom directory (and not the default, which is `./sdk-gen/`), you can use the `--dir` argument.
363363

364364
```zsh
365-
yarn sdk-gen --dir ./my-custom/directory
365+
pnpm sdk-gen --dir ./my-custom/directory
366366
```
367367

368368
After running the generator, you should get the following result:
@@ -398,7 +398,7 @@ An added benefit is that this sdk doesn't depend on `graphql`. Many GraphQL Clie
398398
## `@bsmnt/drop`
399399

400400
```zsh
401-
yarn add @bsmnt/drop
401+
pnpm add @bsmnt/drop
402402
```
403403

404404
This package exports:

examples/nextjs-shopify/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ The flow is:
1414

1515
## Development
1616

17-
1. Install yarn (or use whichever package manager you prefer):
17+
1. Install pnpm (or use whichever package manager you prefer):
1818

1919
```
20-
npm install -g yarn
20+
npm install -g pnpm
2121
```
2222

2323
2. Install the dependencies with:
2424

2525
```
26-
yarn
26+
pnpm
2727
```
2828

2929
3. Start developing and watch for code changes:
3030

3131
```
32-
yarn dev
32+
pnpm dev
3333
```

examples/nextjs-shopify/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8-
"build:analyze": "cross-env ANALYZE=true yarn build",
8+
"build:analyze": "cross-env ANALYZE=true pnpm build",
99
"start": "next start",
1010
"lint": "next lint",
11-
"generate": "yarn sdk-gen --dir src/storefront/sdk-gen"
11+
"generate": "pnpm sdk-gen --dir src/storefront/sdk-gen"
1212
},
1313
"dependencies": {
1414
"@bsmnt/drop": "*",

internal/examples-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"source": "./src/index.ts",
1212
"sideEffects": false,
1313
"scripts": {
14-
"dev": "yarn build --watch",
14+
"dev": "pnpm build --watch",
1515
"build": "tsup ./src/index.ts --format esm,cjs --dts"
1616
},
1717
"dependencies": {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"lint": "turbo run lint",
1616
"generate": "turbo run generate",
1717
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
18-
"version:packages": "yarn changeset version",
19-
"release": "yarn build:packages && yarn changeset publish"
18+
"version:packages": "pnpm changeset version",
19+
"release": "pnpm build:packages && pnpm changeset publish"
2020
},
2121
"devDependencies": {
2222
"@changesets/cli": "^2.22.0",
@@ -28,5 +28,5 @@
2828
"node": "20.x"
2929
},
3030
"dependencies": {},
31-
"packageManager": "[email protected]"
31+
"packageManager": "[email protected]"
3232
}

packages/drop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"source": "./src/index.ts",
99
"sideEffects": false,
1010
"scripts": {
11-
"dev": "yarn build --watch",
11+
"dev": "pnpm build --watch",
1212
"build": "tsup ./src/index.ts --format esm,cjs --dts"
1313
},
1414
"peerDependencies": {

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"source": "./src/index.ts",
1212
"sideEffects": false,
1313
"scripts": {
14-
"dev": "yarn build --watch",
14+
"dev": "pnpm build --watch",
1515
"build": "tsup ./src/index.ts --format esm,cjs --dts"
1616
},
1717
"peerDependencies": {

packages/sdk-gen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"bin"
1313
],
1414
"scripts": {
15-
"dev": "yarn build --watch",
15+
"dev": "pnpm build --watch",
1616
"build": "tsup ./src/index.ts && tsup ./src/types.ts --dts-only"
1717
},
1818
"peerDependencies": {},

packages/shopify-helpers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Internal use only (for now). Install at your risk:
44

55
```zsh
6-
yarn add @bsmnt/shopify-helpers
6+
pnpm add @bsmnt/shopify-helpers
77
```
88

99
Exports:

0 commit comments

Comments
 (0)