فهرست منبع

chore: upgrade to node@18 (#1903)

Gerald 2 سال پیش
والد
کامیت
daa5cab58b

+ 1 - 1
.github/workflows/ci.yml

@@ -25,7 +25,7 @@ jobs:
           fetch-depth: 100 # for revision index in version and the `has-changed-path` action
       - uses: actions/setup-node@v2
         with:
-          node-version: '16'
+          node-version: '18'
 
       - name: Build
         env:

+ 1 - 1
.github/workflows/release-edge.yml

@@ -18,7 +18,7 @@ jobs:
 
       - uses: actions/setup-node@v2
         with:
-          node-version: '16'
+          node-version: '18'
 
       - name: Prepare
         run: yarn && node scripts/action-helper.js

+ 1 - 1
.github/workflows/release.yml

@@ -17,7 +17,7 @@ jobs:
 
       - uses: actions/setup-node@v2
         with:
-          node-version: '16'
+          node-version: '18'
 
       - name: Prepare
         run: yarn && node scripts/action-helper.js

+ 1 - 1
.github/workflows/transifex-pull-translations.yml

@@ -15,7 +15,7 @@ jobs:
         uses: actions/checkout@v2
       - uses: actions/setup-node@v2
         with:
-          node-version: '16'
+          node-version: '18'
       - name: Install deps
         run: yarn
       - name: Update translations

+ 1 - 1
.github/workflows/transifex-push-translations.yml

@@ -17,7 +17,7 @@ jobs:
         uses: actions/checkout@v2
       - uses: actions/setup-node@v2
         with:
-          node-version: '16'
+          node-version: '18'
       - name: Install deps
         run: yarn
       - name: Upload translations

+ 1 - 2
package.json

@@ -45,7 +45,6 @@
     "husky": "^8.0.1",
     "jest-environment-jsdom": "^29.0.3",
     "js-yaml": "^4.1.0",
-    "node-fetch": "^3.2.10",
     "plugin-error": "^2.0.0",
     "postcss-scss": "^4.0.4",
     "postcss-simple-vars": "^6.0.3",
@@ -73,7 +72,7 @@
     "vueleton": "^2.0.2"
   },
   "engines": {
-    "node": ">=16"
+    "node": ">=18"
   },
   "jest": {
     "setupFilesAfterEnv": [

+ 0 - 1
scripts/transifex.mjs

@@ -1,7 +1,6 @@
 import { readFile, writeFile, mkdir } from 'fs/promises';
 import spawn from 'cross-spawn';
 import yaml from 'js-yaml';
-import fetch from 'node-fetch';
 
 const PROJECT_ID = 'o:violentmonkey:p:violentmonkey-nex';
 const RESOURCE_ID = `${PROJECT_ID}:r:messagesjson`;

+ 1 - 1
yarn.lock

@@ -7512,7 +7512,7 @@ node-fetch@^2.3.0, node-fetch@^2.6.7:
   dependencies:
     whatwg-url "^5.0.0"
 
-node-fetch@^3.2.10, node-fetch@^3.2.6:
+node-fetch@^3.2.6:
   version "3.2.10"
   resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.2.10.tgz#e8347f94b54ae18b57c9c049ef641cef398a85c8"
   integrity sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==