Skip to content

Commit 891cd6b

Browse files
Drop support for node 18, move tests (#3342)
* Drop support for node 18, move tests * Move cypress tests * Explicitly import vitest things * Fix some lint * Remove max-lines * ESLint 9 * Update eslint.config.js * Update test.yml
1 parent 72261a7 commit 891cd6b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1922
-1029
lines changed

.eslintrc.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ module.exports = {
99
browser: true
1010
},
1111
rules: {
12-
'max-lines': [
13-
'warn',
14-
{ max: 500, skipBlankLines: true, skipComments: true }
15-
],
1612
'no-console': 'off',
1713
'prefer-const': 'off'
1814
},

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,9 @@ jobs:
6767
with:
6868
command: pnpm test:ci
6969
install: false
70+
- name: Upload Coverage to Qlty
71+
uses: qltysh/qlty-action/coverage@v2
72+
with:
73+
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
74+
files: shepherd.js/test/coverage/lcov.info
75+
add-prefix: shepherd.js/

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
nodejs 20.19.0
2-
pnpm 10.17.1
1+
nodejs 22.22.0
2+
pnpm 10.28.2

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"license": "AGPL-3.0",
1010
"scripts": {
1111
"build": "pnpm -F shepherd.js build && pnpm -F '!shepherd.js' -F !landing -F !shepherd-docs build",
12-
"cypress:install": "pnpm -F 'cypress-tests' cypress:install",
12+
"cypress:install": "pnpm -F shepherd.js cypress:install",
1313
"dev": "pnpm watch",
1414
"lint": "pnpm -F '*' lint",
1515
"lint:fix": "pnpm -F '*' lint:fix",
@@ -18,23 +18,26 @@
1818
"lint:prettier:fix": "pnpm -F '*' lint:prettier:fix",
1919
"prepare": "pnpm -F shepherd.js build",
2020
"start": "pnpm watch",
21-
"test:ci": "pnpm build && pnpm -F '*' test:ci",
22-
"test:cy:watch": "pnpm -F cypress-tests test:watch",
23-
"test:unit:watch": "pnpm -F unit-tests test:watch",
21+
"test:ci": "pnpm build && pnpm -F shepherd.js test:ci",
22+
"test:cy:ci": "pnpm -F shepherd.js test:cy:ci",
23+
"test:cy:watch": "pnpm -F shepherd.js test:cy:watch",
24+
"test:unit:ci": "pnpm -F shepherd.js test:unit:ci",
25+
"test:unit:watch": "pnpm -F shepherd.js test:unit:watch",
2426
"types:check": "pnpm -F shepherd.js types:check",
25-
"view-coverage": "pnpm -F unit-tests view-coverage",
27+
"view-coverage": "pnpm -F shepherd.js view-coverage",
2628
"watch": "pnpm -F shepherd.js watch"
2729
},
2830
"devDependencies": {
2931
"@babel/core": "^7.28.5",
3032
"@babel/preset-env": "^7.28.5",
31-
"@typescript-eslint/eslint-plugin": "^7.18.0",
32-
"@typescript-eslint/parser": "^7.18.0",
33+
"@eslint/js": "^9.39.2",
34+
"@typescript-eslint/eslint-plugin": "^8.54.0",
35+
"@typescript-eslint/parser": "^8.54.0",
3336
"autoprefixer": "^10.4.23",
3437
"concurrently": "^9.2.1",
3538
"del": "^7.1.0",
36-
"eslint": "^8.57.1",
37-
"eslint-plugin-svelte": "^2.46.1",
39+
"eslint": "^9.39.2",
40+
"eslint-plugin-svelte": "^3.14.0",
3841
"postcss": "^8.5.6",
3942
"prettier": "3.3.3",
4043
"prettier-plugin-astro": "^0.14.1",
@@ -45,9 +48,9 @@
4548
"svelte": "^5.46.4",
4649
"typescript": "^5.9.3"
4750
},
48-
"packageManager": "pnpm@10.17.1",
51+
"packageManager": "pnpm@10.28.2",
4952
"engines": {
50-
"node": "18.* || >= 20"
53+
"node": ">= 20"
5154
},
5255
"authors": [
5356
"Robbie Wagner <rwwagner90@gmail.com>",

0 commit comments

Comments
 (0)