Skip to content

Commit 172a432

Browse files
committed
Update dependencies and practies
1 parent 75a45c3 commit 172a432

4 files changed

Lines changed: 606 additions & 330 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout the repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: Install pnpm
1717
uses: pnpm/action-setup@v2
1818
with:
19-
version: latest
19+
version: 8
2020
- name: Install Node.js
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: 19
23+
node-version: 20
2424
cache: pnpm
2525
- name: Install dependencies
2626
run: pnpm install --frozen-lockfile --ignore-scripts
@@ -33,15 +33,14 @@ jobs:
3333
node-version:
3434
- 18
3535
- 16
36-
- 14
3736
name: Node.js ${{ matrix.node-version }} Quick
3837
steps:
3938
- name: Checkout the repository
40-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
4140
- name: Install pnpm
4241
uses: pnpm/action-setup@v2
4342
with:
44-
version: latest
43+
version: 8
4544
- name: Install Node.js ${{ matrix.node-version }}
4645
uses: actions/setup-node@v3
4746
with:
@@ -56,12 +55,13 @@ jobs:
5655
strategy:
5756
matrix:
5857
node-version:
58+
- 14
5959
- 12
6060
- 10
6161
name: Node.js ${{ matrix.node-version }} Quick
6262
steps:
6363
- name: Checkout the repository
64-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
6565
- name: Install pnpm
6666
uses: pnpm/action-setup@v1
6767
with:

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = () => {
22
return {
3-
postcssPlugin: 'postcss-will-change',
43
Declaration: {
54
'will-change': decl => {
65
let already = decl.parent.some(i => {
@@ -10,7 +9,8 @@ module.exports = () => {
109
decl.cloneBefore({ prop: 'backface-visibility', value: 'hidden' })
1110
}
1211
}
13-
}
12+
},
13+
postcssPlugin: 'postcss-will-change'
1414
}
1515
}
1616
module.exports.postcss = true

package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"repository": "postcss/postcss-will-change",
1515
"scripts": {
1616
"unit": "uvu . '\\.test\\.js$'",
17-
"test": "c8 pnpm unit && eslint ."
17+
"test:coverage": "c8 pnpm unit",
18+
"test:lint": "eslint .",
19+
"test": "pnpm run /^test:/"
1820
},
1921
"engines": {
2022
"node": ">=10.0"
@@ -33,16 +35,18 @@
3335
"postcss": "^8.1.0"
3436
},
3537
"devDependencies": {
36-
"@logux/eslint-config": "^49.0.0",
37-
"c8": "^7.13.0",
38-
"clean-publish": "^4.1.1",
39-
"eslint": "^8.36.0",
40-
"eslint-config-standard": "^17.0.0",
41-
"eslint-plugin-import": "^2.27.5",
42-
"eslint-plugin-n": "^15.6.1",
38+
"@logux/eslint-config": "^52.0.1",
39+
"c8": "^8.0.1",
40+
"clean-publish": "^4.2.0",
41+
"eslint": "^8.51.0",
42+
"eslint-config-standard": "^17.1.0",
43+
"eslint-plugin-import": "^2.28.1",
44+
"eslint-plugin-n": "^16.1.0",
45+
"eslint-plugin-node-import": "^1.0.4",
46+
"eslint-plugin-perfectionist": "^2.1.0",
4347
"eslint-plugin-prefer-let": "^3.0.1",
4448
"eslint-plugin-promise": "^6.1.1",
45-
"postcss": "^8.4.21",
49+
"postcss": "^8.4.31",
4650
"uvu": "^0.5.6"
4751
},
4852
"prettier": {

0 commit comments

Comments
 (0)