Skip to content

Commit

Permalink
Merge pull request #27 from homer0/next
Browse files Browse the repository at this point in the history
Update dependencies and add support for Node v22
  • Loading branch information
homer0 authored Nov 9, 2024
2 parents 90ff209 + bfa4563 commit de5b9f4
Show file tree
Hide file tree
Showing 10 changed files with 6,571 additions and 4,068 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ jobs:
- name: Node.js
uses: actions/setup-node@v3
with:
node-version: '20.8.1'
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v2
with:
version: 8
version: 9
- name: Install dependencies
env:
HUSKY_SKIP_INSTALL: 1
run: pnpm install --frozen-lockfile
- name: Install semantic-release
run: pnpm add -g semantic-release@^23.0.7 @semantic-release/changelog@^6.0.3 @semantic-release/git@^10.0.1
- run: semantic-release
- run: pnpm exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '18', '20' ]
node: [ '18', '20', '22' ]
name: Run jest and ESLint (Node ${{ matrix.node }})
steps:
- uses: actions/checkout@v3
Expand All @@ -16,10 +16,10 @@ jobs:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v2
with:
version: 8
version: 9
- run: pnpm install --frozen-lockfile
- run: pnpm run lint:all
- run: pnpm test
- name: Coveralls
if: ${{ matrix.node == '18' }}
if: ${{ matrix.node == '20' }}
uses: coverallsapp/github-action@v2
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec commitlint --edit $1

5 changes: 1 addition & 4 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm install

pnpm install --frozen-lockfile
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm run lint
2 changes: 0 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,41 @@
],
"license": "MIT",
"dependencies": {
"@babel/core": "^7.24.6",
"@babel/preset-env": "^7.24.6",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"5to6-codemod": "1.8.0",
"chalk": "^5.3.0",
"fs-extra": "^11.2.0",
"jscodeshift": "0.15.2"
"jscodeshift": "17.1.1"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@homer0/eslint-plugin": "^12.0.5",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@homer0/eslint-plugin": "^12.0.6",
"@homer0/prettier-config": "^1.1.3",
"@homer0/prettier-plugin-jsdoc": "^9.0.0",
"@homer0/prettier-plugin-jsdoc": "^9.1.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"docdash": "homer0/docdash#semver:^2.1.2",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"eslint": "^8.57.1",
"husky": "^9.1.6",
"is-ci": "^3.0.1",
"jest": "^29.7.0",
"jimple": "^1.5.0",
"jsdoc": "^4.0.3",
"jsdoc": "^4.0.4",
"jsdoc-ts-utils": "^5.0.0",
"leasot": "^13.3.0",
"lint-staged": "^15.2.5",
"prettier": "^3.2.5"
"leasot": "^14.4.0",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"semantic-release": "^24.2.0"
},
"main": "src/index.js",
"bin": {
"cjs2esm": "./src/bin.js"
},
"engine-strict": true,
"engines": {
"node": ">=18.17 <21"
"node": ">=18.17 <23"
},
"commitlint": {
"extends": [
Expand Down
Loading

0 comments on commit de5b9f4

Please sign in to comment.