Skip to content

Commit

Permalink
chore: further pnpm cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 22, 2022
1 parent 45c23f0 commit 2974608
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2

- run: corepack enable

- uses: actions/setup-node@v3
with:
Expand All @@ -19,14 +20,15 @@ jobs:
run: pnpm install --frozen-lockfile

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

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2

- run: corepack enable

- uses: actions/setup-node@v3
with:
Expand All @@ -37,10 +39,10 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Build project
run: npm run build
run: pnpm build

- name: Test project
run: npm run test -- --coverage
run: pnpm test -- --coverage

- name: Coverage
uses: codecov/codecov-action@v3
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
lib/*
!lib/.gitkeep
dist/*
!dist/.gitkeep
node_modules
coverage

.pnp.*
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
"scripts": {
"build": "unbuild",
"postinstall": "husky install",
"lint": "yarn lint:all:eslint && yarn lint:all:prettier",
"lint:all:eslint": "yarn lint:eslint --ext .js,.ts,.vue .",
"lint:all:prettier": "yarn lint:prettier \"**/*.{js,json,ts}\"",
"lint": "npm run lint:all:eslint && npm run lint:all:prettier",
"lint:all:eslint": "npm run lint:eslint -- --ext .js,.ts,.vue .",
"lint:all:prettier": "npm run lint:prettier -- \"**/*.{js,json,ts}\"",
"lint:eslint": "eslint --fix",
"lint:prettier": "prettier --write --loglevel warn",
"prepare": "yarn build",
"prepublishOnly": "yarn pinst --disable",
"postpublish": "yarn pinst --enable",
"prepare": "npm run build",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"release": "release-it",
"test": "yarn vitest"
"test": "vitest"
},
"resolutions": {
"minimist": ">=1.2.5"
Expand Down

0 comments on commit 2974608

Please sign in to comment.