Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 1505a34

Browse files
committed
Switch to pnpm
1 parent 623ed89 commit 1505a34

File tree

13 files changed

+3697
-5861
lines changed

13 files changed

+3697
-5861
lines changed

.github/renovate.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"lockFileMaintenance": { "enabled": true },
88
"pin": false,
99
"rangeStrategy": "replace",
10-
"postUpdateOptions": ["yarnDedupeHighest"],
1110
"ignorePresets": ["workarounds:typesNodeVersioning"],
1211
"packageRules": [
1312
{

.github/workflows/ci.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,47 +14,42 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v2
1616

17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v2
19+
with:
20+
version: 6
21+
1722
- name: Set node version to 14
1823
uses: actions/setup-node@v2
1924
with:
2025
node-version: 14
21-
22-
- name: Fetch cached dependencies
23-
uses: actions/cache@v2
24-
id: yarn-cache
25-
with:
26-
path: |
27-
**/.yarn/cache
28-
**/node_modules
29-
key: node-14-os-ubuntu-latest-yarn-${{ hashFiles('**/yarn.lock') }}
30-
restore-keys: |
31-
node-14-os-ubuntu-latest-yarn-
26+
cache: 'pnpm'
3227

3328
- name: Versions
3429
run: |
35-
echo "yarn: $(yarn --version)"
30+
echo "pnpm: $(pnpm --version)"
3631
echo "npm : $(npm --version)"
3732
echo "node: $(node --version)"
3833
echo "process.versions:"
39-
yarn node -p process.versions
34+
pnpm node -p process.versions
4035
4136
- name: Install dependencies
42-
run: yarn install --immutable
37+
run: pnpm install --frozen-lockfile
4338

4439
- name: Lint
45-
run: yarn lint
40+
run: pnpm run lint
4641

4742
- name: Check
48-
run: yarn check
43+
run: pnpm run check
4944

5045
- name: Audit production
51-
run: yarn npm audit --all --recursive --environment production
46+
run: pnpm audit --prod
5247

5348
- name: Audit all
5449
continue-on-error: true
55-
run: yarn npm audit --all --recursive
50+
run: pnpm audit
5651

5752
- name: Check outdated dependencies
5853
continue-on-error: true
5954
if: github.ref == 'refs/heads/main'
60-
run: yarn outdated --url
55+
run: pnpm outdated --long

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.github/ISSUE_TEMPLATE/
22
.yarn/
33
.pnp.cjs
4+
pnpm-lock.yaml
45
coverage/
56
dist/

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 0 additions & 363 deletions
This file was deleted.

.yarn/plugins/@yarnpkg/plugin-outdated.cjs

Lines changed: 0 additions & 33 deletions
This file was deleted.

.yarn/releases/yarn-berry.cjs

Lines changed: 0 additions & 631 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
[diff](https://github.com/Shinigami92/eslint-define-config/compare/1.0.9...1.1.0)
88

99
- Automatically generate rule definitions for: ([#69])
10-
- `eslint`
11-
- `@typescript-eslint`
12-
- `jsdoc`
13-
- `spellcheck`
14-
- `vue`
10+
- `eslint`
11+
- `@typescript-eslint`
12+
- `jsdoc`
13+
- `spellcheck`
14+
- `vue`
1515

1616
[#69]: https://github.com/Shinigami92/eslint-define-config/pull/69
1717

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ Provide a `defineConfig` function for `.eslintrc.js` files.
3333

3434
```bash
3535
# add eslint and eslint-define-config to project’s dev dependencies
36-
npm install --save-dev eslint eslint-define-config
36+
npm add --save-dev eslint eslint-define-config
3737
# or
3838
yarn add --dev eslint eslint-define-config
39+
# or
40+
pnpm add --save-dev eslint eslint-define-config
3941
```
4042

4143
# Usage

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"description": "Provide a defineConfig function for .eslintrc.js files",
55
"main": "src/index.js",
66
"scripts": {
7-
"clean": "rm -Rf dist yarn.lock node_modules",
7+
"clean": "rm -Rf dist pnpm-lock.yaml node_modules",
88
"check": "tsc",
99
"format": "prettier --write .",
1010
"lint": "eslint .",
1111
"test": "echo \"No tests available\"",
12-
"prepublishOnly": "yarn clean && yarn install && yarn check",
12+
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run check",
1313
"generate:rules": "esno ./scripts/generate-rule-files.ts",
1414
"generate": "node ./scripts/generate-rule.js"
1515
},

0 commit comments

Comments
 (0)