Skip to content

Commit

Permalink
feat: remove Node 16 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssimon committed Oct 16, 2023
1 parent b2c8548 commit 146af39
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 218 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -24,10 +24,17 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- name: Install dependencies
run: yarn

- name: Lint
run: yarn lint

- name: TypeScript
run: yarn tsc --noEmit

- name: Test
run: |
yarn
yarn ci-test
run: yarn test

- uses: codecov/codecov-action@v3
# with:
Expand All @@ -40,7 +47,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '18'
node-version-file: .nvmrc
cache: 'yarn'
- name: Release
env:
Expand Down
47 changes: 22 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,35 @@
"README.md"
],
"scripts": {
"lint": "eslint --fix --ext .tsx,.ts,.mts,.cts,.jsx,.js,.mjs,.cjs ./ && tsc --noEmit",
"lint": "eslint --ext .tsx,.ts,.mts,.cts,.jsx,.js,.mjs,.cjs ./",
"build": "tsc",
"prepublishOnly": "tsc",
"test": "jest --coverage",
"ci-test": "run-s \"ci-test:*\"",
"ci-test:lint": "eslint --ext .tsx,.ts,.mts,.cts,.jsx,.js,.mjs,.cjs ./",
"ci-test:tsc": "tsc --noEmit",
"ci-test:test": "jest --coverage",
"commit": "cz",
"postinstall": "husky install",
"prepack": "pinst --disable",
"postpack": "pinst --enable",
"semantic-release": "semantic-release"
},
"devDependencies": {
"@commitlint/cli": "17.8.0",
"@commitlint/config-conventional": "17.8.0",
"@jenssimon/eslint-config-base": "7.2.6",
"@jenssimon/eslint-config-typescript": "5.1.12",
"@types/jest": "29.5.5",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "8.51.0",
"husky": "8.0.3",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "15.0.1",
"npm-run-all": "4.1.5",
"pinst": "3.0.0",
"rxjs": "7.8.1",
"semantic-release": "22.0.5",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typescript": "5.2.2"
"@commitlint/cli": "^17.8.0",
"@commitlint/config-conventional": "^17.8.0",
"@jenssimon/eslint-config-base": "^7.2.6",
"@jenssimon/eslint-config-typescript": "^5.1.12",
"@types/jest": "^29.5.5",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.51.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.0.1",
"pinst": "^3.0.0",
"rxjs": "^7.8.1",
"semantic-release": "^22.0.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"peerDependencies": {
"rxjs": ">=6"
Expand Down Expand Up @@ -98,7 +93,9 @@
"json",
"node"
],
"extensionsToTreatAsEsm": [".ts"]
"extensionsToTreatAsEsm": [
".ts"
]
},
"packageManager": "yarn@3.6.4",
"config": {
Expand Down
Loading

0 comments on commit 146af39

Please sign in to comment.