Skip to content

Commit 9c0a9e9

Browse files
authored
Merge pull request #7 from aboutbits/update-packages-and-configs
Update packages and configs
2 parents bd96814 + 06e0af7 commit 9c0a9e9

4 files changed

Lines changed: 20 additions & 14 deletions

File tree

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"prettier",
1515
"plugin:prettier/recommended",
1616
"plugin:@typescript-eslint/recommended",
17-
"plugin:import/typescript"
17+
"plugin:import/typescript",
18+
"plugin:jest/recommended"
1819
],
1920
"parserOptions": {
2021
"sourceType": "module",

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
prerelease: false
1919
- uses: actions/setup-node@v1
2020
with:
21-
node-version: '12.x'
21+
node-version: '16.x'
2222
registry-url: 'https://registry.npmjs.org'
2323
- run: npm install
2424
- run: npm publish

jestconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"testEnvironment": "jsdom",
23
"transform": {
34
"^.+\\.(t|j)sx?$": "ts-jest"
45
},

package.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"main": "dist/index.js",
1414
"module": "dist/esm/index.js",
1515
"typings": "dist/index.d.ts",
16+
"engines": {
17+
"npm": "^8",
18+
"node": "^16"
19+
},
1620
"scripts": {
1721
"build": "npm run build:node && npm run build:esm",
1822
"build:node": "tsc",
@@ -41,17 +45,17 @@
4145
},
4246
"homepage": "https://github.com/aboutbits/pagination#readme",
4347
"devDependencies": {
44-
"@types/jest": "^26.0.9",
45-
"@typescript-eslint/eslint-plugin": "^3.8.0",
46-
"@typescript-eslint/parser": "^3.8.0",
47-
"eslint": "^7.6.0",
48-
"eslint-config-prettier": "^6.11.0",
49-
"eslint-plugin-import": "^2.22.0",
50-
"eslint-plugin-jest": "^23.20.0",
51-
"eslint-plugin-prettier": "^3.1.4",
52-
"jest": "^26.2.2",
53-
"prettier": "^2.0.5",
54-
"ts-jest": "^26.1.4",
55-
"typescript": "^3.9.7"
48+
"@types/jest": "^28.1.3",
49+
"@typescript-eslint/eslint-plugin": "^5.30.0",
50+
"@typescript-eslint/parser": "^5.30.0",
51+
"eslint": "^8.18.0",
52+
"eslint-config-prettier": "^8.5.0",
53+
"eslint-plugin-import": "^2.26.0",
54+
"eslint-plugin-jest": "^26.5.3",
55+
"eslint-plugin-prettier": "^4.1.0",
56+
"jest": "^28.1.2",
57+
"prettier": "^2.7.1",
58+
"ts-jest": "^28.0.5",
59+
"typescript": "^4.7.4"
5660
}
5761
}

0 commit comments

Comments
 (0)