From 959f578568112b38828cfc214bfccca8c5dc733c Mon Sep 17 00:00:00 2001 From: jihchi Date: Sat, 2 Jul 2022 06:20:51 -0400 Subject: [PATCH] Restrict Node engines in v14, v16 and v18 --- .github/workflows/main.yml | 5 +---- .github/workflows/size.yml | 12 ------------ package-lock.json | 6 +++--- package.json | 4 ++-- 4 files changed, 6 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/size.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d63f6d..3121373 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node: ['12.x', '14.x', '16.x'] + node: ['14.x', '16.x', '18.x'] os: [ubuntu-latest, windows-latest, macOS-latest] steps: @@ -22,9 +22,6 @@ jobs: - name: Install deps and build (with cache) uses: bahmutov/npm-install@v1 - - name: Lint - run: npm run lint - - name: Test run: npm test --ci --coverage --maxWorkers=2 diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml deleted file mode 100644 index 6021cda..0000000 --- a/.github/workflows/size.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: size -on: [pull_request] -jobs: - size: - runs-on: ubuntu-latest - env: - CI_JOB_NUMBER: 1 - steps: - - uses: actions/checkout@v1 - - uses: andresz1/size-limit-action@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/package-lock.json b/package-lock.json index 75f291e..bc85799 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,14 +15,14 @@ }, "devDependencies": { "@types/debug": "^4.1.7", - "prettier": "^2.7.1", + "prettier": "2.7.1", "tsup": "^6.1.3", "vite": "^2.5.3", "vitest": "^0.1.16" }, "engines": { - "node": "^15", - "npm": "^7" + "node": "^14 || ^16 || ^18", + "npm": "^7 || ^8" }, "peerDependencies": { "rescript": "^9.1.3", diff --git a/package.json b/package.json index db875ee..1ddb262 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "src" ], "engines": { - "node": "^15", - "npm": "^7" + "node": "^14 || ^16 || ^18", + "npm": "^7 || ^8" }, "scripts": { "build": "tsup src/index.ts",