Skip to content

Commit 76a0bdb

Browse files
authored
[scripts] Move scripts (and benchmarks) off of node-fetch (#98347)
We're using Node.js versions with a built-in `fetch` implementation in all of these scripts.
1 parent e8955cc commit 76a0bdb

11 files changed

Lines changed: 0 additions & 45 deletions

File tree

‎.github/actions/next-integration-stat/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"@actions/core": "^1.10.0",
1717
"@actions/exec": "^1.1.1",
1818
"@actions/github": "^6.0.0",
19-
"node-fetch": "^3.3.2",
2019
"semver": "^7.3.8",
2120
"strip-ansi": "^7.0.1"
2221
},

‎.github/workflows/test_e2e_project_reset_cron.yml‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,5 @@ jobs:
3535
check-latest: true
3636
package-manager-cache: false
3737

38-
- name: Setup pnpm
39-
run: |
40-
npm i -g corepack@0.31
41-
corepack enable
42-
43-
- name: Install dependencies
44-
run: pnpm install
45-
4638
- name: Reset test project
4739
run: node scripts/run-e2e-test-project-reset.mjs

‎bench/nested-deps-app-router-many-pages/bench.mjs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { execSync, spawn } from 'child_process'
22
import { join } from 'path'
33
import { fileURLToPath } from 'url'
4-
import fetch from 'node-fetch'
54
import {
65
existsSync,
76
readFileSync,

‎bench/nested-deps-app-router/bench.mjs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { execSync, spawn } from 'child_process'
22
import { join } from 'path'
33
import { fileURLToPath } from 'url'
4-
import fetch from 'node-fetch'
54
import {
65
existsSync,
76
readFileSync,

‎bench/nested-deps/bench.mjs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { execSync, spawn } from 'child_process'
22
import { join } from 'path'
33
import { fileURLToPath } from 'url'
4-
import fetch from 'node-fetch'
54
import {
65
existsSync,
76
readFileSync,

‎crates/next-build-test/nextConfig.json‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@
110110
},
111111
"https": {
112112
"browser": "./turbopack/empty.js"
113-
},
114-
"node-fetch": {
115-
"browser": "./turbopack/empty.js"
116113
}
117114
}
118115
},

‎package.json‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@
160160
"@types/jest": "29.5.5",
161161
"@types/js-yaml": "4.0.9",
162162
"@types/node": "20.17.7",
163-
"@types/node-fetch": "2.6.1",
164163
"@types/react": "19.2.18",
165164
"@types/react-dom": "19.2.4",
166165
"@types/shell-quote": "1.7.1",
@@ -239,7 +238,6 @@
239238
"moment": "^2.24.0",
240239
"nanoid": "3.1.30",
241240
"next": "workspace:*",
242-
"node-fetch": "2.6.7",
243241
"node-plop": "0.31.1",
244242
"npm-run-all": "4.1.5",
245243
"nprogress": "0.2.0",

‎pnpm-lock.yaml‎

Lines changed: 0 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎scripts/generate-release-log.mjs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @ts-check
2-
import fetch from 'node-fetch'
32

43
export async function main() {
54
const releasesArray = await fetch(

‎scripts/reset-project.mjs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import fetch from 'node-fetch'
2-
31
export const TEST_PROJECT_NAME = 'vtest314-e2e-tests'
42
export const TEST_TEAM_NAME = process.env.VERCEL_TEST_TEAM
53
export const TEST_TOKEN = process.env.VERCEL_TEST_TOKEN

0 commit comments

Comments
 (0)