From df191a1415ecb2529849d99eff66b2f5616b410b Mon Sep 17 00:00:00 2001 From: JounQin Date: Sat, 14 Oct 2023 15:55:47 +0800 Subject: [PATCH] chore: update node version align with prettier-eslint (#451) --- .changeset/twelve-crews-add.md | 5 +++++ .github/workflows/ci.yml | 3 ++- .github/workflows/release.yml | 2 +- .npmrc | 1 + .nvmrc | 2 +- package.json | 7 +++---- 6 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 .changeset/twelve-crews-add.md diff --git a/.changeset/twelve-crews-add.md b/.changeset/twelve-crews-add.md new file mode 100644 index 0000000..13b0ae0 --- /dev/null +++ b/.changeset/twelve-crews-add.md @@ -0,0 +1,5 @@ +--- +"prettier-eslint-cli": patch +--- + +chore: update node version align with prettier-eslint diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36751fc..79e00a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,10 @@ jobs: - 14 - 16 - 18 + - 20 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3559b2..7ec9fe3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 diff --git a/.npmrc b/.npmrc index 1df2a6d..b3586a0 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ registry=https://registry.npmjs.org/ package-lock=false +legacy-peer-deps=true diff --git a/.nvmrc b/.nvmrc index 2a4e4ab..cb406c6 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.17.0 +16.20.2 diff --git a/package.json b/package.json index 2aeab87..c2963ea 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "CLI for prettier-eslint", "main": "dist/no-main.js", "engines": { - "node": ">=16.0.0" + "node": ">=16.10.0" }, "bin": { "prettier-eslint": "dist/index.js" @@ -40,7 +40,7 @@ }, "dependencies": { "@messageformat/core": "^3.2.0", - "@prettier/eslint": "npm:prettier-eslint@^16.0.0", + "@prettier/eslint": "npm:prettier-eslint@^16.1.0", "arrify": "^2.0.1", "boolify": "^1.0.1", "camelcase-keys": "^9.1.0", @@ -78,8 +78,7 @@ "rimraf": "^5.0.5", "simple-git-hooks": "^2.9.0", "spawn-command": "0.0.2-1", - "strip-indent": "^3.0.0", - "yargs-parser": "^21.1.1" + "strip-indent": "^3.0.0" }, "lint-staged": { "*.+(js|json|md|yml)": "node ./dist/index --write"