Skip to content

Commit

Permalink
migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
victory-sokolov committed Jul 12, 2024
1 parent 808a348 commit f0ffa3d
Show file tree
Hide file tree
Showing 7 changed files with 7,033 additions and 7,687 deletions.
35 changes: 23 additions & 12 deletions .github/workflows/ci.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ on:
push:
branches: [main]
paths-ignore:
- '*.md'
- 'docs/**'
- '.*'
- "*.md"

Check failure on line 7 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Strings must use singlequote
- "docs/**"

Check failure on line 8 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Strings must use singlequote
- ".*"

Check failure on line 9 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Strings must use singlequote
- package.json
- yarn.lock

pull_request:
branches: [main]
paths-ignore:
- '*.md'
- 'docs/**'
- '.*'
- "*.md"

Check failure on line 16 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Strings must use singlequote
- "docs/**"

Check failure on line 17 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Strings must use singlequote
- ".*"

Check failure on line 18 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Strings must use singlequote
- package.json
- yarn.lock

Expand All @@ -24,12 +24,21 @@ on:
jobs:
lint-test:
runs-on: ubuntu-latest
strategy:
fail-fast: true

steps:
- name: Checkout commit
uses: actions/checkout@v4
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.5
run_install: false

- name: Read .nvmrc
run: |
NODE_VERSION=$(cat .nvmrc)
Expand All @@ -40,18 +49,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
cache: "pnpm"

Check failure on line 52 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Must use plain style scalar

Check failure on line 52 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Strings must use singlequote
cache-dependency-path: "pnpm-lock.yaml"

Check failure on line 53 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Must use plain style scalar

Check failure on line 53 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / lint-test

Strings must use singlequote

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

- name: Run linter
run: yarn lint
run: pnpm lint

- name: Run typechecker
run: yarn typecheck
run: pnpm typecheck

- name: Run tests
run: yarn test:no-watch
run: pnpm test:no-watch

- name: Build
run: yarn build
run: pnpm build
File renamed without changes.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"sideEffects": false,
"exports": {
".": {
"source": "./src/index.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
Expand All @@ -43,10 +44,10 @@
"test:coverage": "vitest run --coverage",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"docs": "yarn run typedoc ./src --out docs",
"prepublishOnly": "yarn run lint && yarn test:no-watch",
"preversion": "yarn run lint && yarn test:no-watch",
"version": "yarn run lint && git add -A src",
"docs": "pnpm run typedoc ./src --out docs",
"prepublishOnly": "pnpm run lint && pnpm test:no-watch",
"preversion": "pnpm run lint && pnpm test:no-watch",
"version": "pnpm run lint && git add -A src",
"postversion": "git push && git push --tags",
"typecheck": "tsc --noEmit",
"clean": "rimraf ./node_modules && rimraf dist",
Expand Down Expand Up @@ -89,8 +90,8 @@
},
"husky": {
"hooks": {
"pre-push": "yarn run prepush",
"pre-commit": "yarn lint",
"pre-push": "pnpm run prepush",
"pre-commit": "pnpm lint",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
Expand Down
Loading

0 comments on commit f0ffa3d

Please sign in to comment.