Skip to content

Commit

Permalink
chore: migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 25, 2024
1 parent 3c9a8bb commit 8e2ea96
Show file tree
Hide file tree
Showing 26 changed files with 7,305 additions and 10,604 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
dist
bin
coverage
.yarn
.pnp.js
61 changes: 14 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,70 +14,37 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v2
id: cache
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.js
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.pnp.js') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: yarn
run: pnpm install

- name: Lint project
run: yarn lint
run: pnpm lint

test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12, 14, 16]
node: [16, 18]

steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- uses: actions/checkout@v1

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v2
id: cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.js
key: yarn-${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.pnp.js') }}
restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node }}
- name: Install dependencies
run: yarn
run: pnpm install

- name: Bootstrap project
run: yarn bootstrap
run: pnpm bootstrap

- name: Test project
run: yarn test
run: pnpm test
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,3 @@ packages/*/dist
!dist/.gitkeep
node_modules
coverage

# https://yarnpkg.com/advanced/qa#which-files-should-be-gitignored
.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
pnpm lint-staged
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
dist
coverage
.yarn
.pnp.js
77 changes: 0 additions & 77 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

8 changes: 0 additions & 8 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

This file was deleted.

616 changes: 0 additions & 616 deletions .yarn/releases/yarn-3.0.0-rc.9.cjs

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/eslint/lib/api.js

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/eslint/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions .yarn/sdks/integrations.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/prettier/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/prettier/package.json

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/lib/tsc.js

This file was deleted.

149 changes: 0 additions & 149 deletions .yarn/sdks/typescript/lib/tsserver.js

This file was deleted.

Loading

0 comments on commit 8e2ea96

Please sign in to comment.