Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch to pnpm #1644

Merged
merged 1 commit into from Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -20,16 +20,21 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 7.5.0
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: yarn install
- run: yarn lint
- run: yarn test
- run: yarn build
cache: 'pnpm'
- run: pnpm install
- run: pnpm run lint
- run: pnpm run test
- run: pnpm run build
env:
CI: true
- run: yarn test:build
- run: yarn tsd
- run: yarn vue-tsc
- run: pnpm run test:build
- run: pnpm run tsd
- run: pnpm run vue-tsc
1 change: 0 additions & 1 deletion .gitignore
@@ -1,5 +1,4 @@
.idea
node_modules
yarn-error.log
dist
coverage
28 changes: 20 additions & 8 deletions package.json
Expand Up @@ -33,6 +33,7 @@
"@vitejs/plugin-vue": "2.3.3",
"@vitejs/plugin-vue-jsx": "1.3.10",
"@vue/compat": "3.2.37",
"@vue/runtime-core": "3.2.37",
"@vue/compiler-dom": "3.2.37",
"@vue/compiler-sfc": "3.2.37",
"c8": "7.11.3",
Expand All @@ -51,6 +52,7 @@
"tslib": "2.4.0",
"typescript": "4.7.4",
"vitepress": "0.22.4",
"vite": "2.9.13",
"vitest": "0.17.0",
"vue": "3.2.37",
"vue-class-component": "8.0.0-rc.1",
Expand All @@ -66,18 +68,18 @@
"email": "lachlan.miller.1990@outlook.com"
},
"scripts": {
"test": "yarn vitest",
"test:coverage": "yarn vitest --coverage",
"test:watch": "yarn vitest --watch",
"test:build": "yarn vitest --mode test-build",
"test": "vitest",
"test:coverage": "vitest --coverage",
"test:watch": "vitest --watch",
"test:build": "vitest --mode test-build",
"tsd": "tsc -p test-dts/tsconfig.tsd.json",
"build": "yarn rollup -c rollup.config.js",
"build": "rollup -c rollup.config.js",
"lint": "eslint --ext .ts src/ tests/",
"lint:fix": "yarn lint --fix",
"lint:fix": "pnpm run lint --fix",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"vue-tsc": "vue-tsc --noEmit -p tsconfig.volar.json",
"prepublishOnly": "yarn build"
"prepublishOnly": "pnpm run build"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -106,5 +108,15 @@
"type": "git",
"url": "git+https://github.com/vuejs/test-utils.git"
},
"homepage": "https://github.com/vuejs/test-utils"
"homepage": "https://github.com/vuejs/test-utils",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search",
"@types/react",
"react",
"react-dom"
]
}
}
}