Unverified Commit 76a0bdbd authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[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.
parent e8955cce
......@@ -16,7 +16,6 @@
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/github": "^6.0.0",
"node-fetch": "^3.3.2",
"semver": "^7.3.8",
"strip-ansi": "^7.0.1"
},
......
......@@ -35,13 +35,5 @@ jobs:
check-latest: true
package-manager-cache: false
- name: Setup pnpm
run: |
npm i -g corepack@0.31
corepack enable
- name: Install dependencies
run: pnpm install
- name: Reset test project
run: node scripts/run-e2e-test-project-reset.mjs
import { execSync, spawn } from 'child_process'
import { join } from 'path'
import { fileURLToPath } from 'url'
import fetch from 'node-fetch'
import {
existsSync,
readFileSync,
......
import { execSync, spawn } from 'child_process'
import { join } from 'path'
import { fileURLToPath } from 'url'
import fetch from 'node-fetch'
import {
existsSync,
readFileSync,
......
import { execSync, spawn } from 'child_process'
import { join } from 'path'
import { fileURLToPath } from 'url'
import fetch from 'node-fetch'
import {
existsSync,
readFileSync,
......
......@@ -110,9 +110,6 @@
},
"https": {
"browser": "./turbopack/empty.js"
},
"node-fetch": {
"browser": "./turbopack/empty.js"
}
}
},
......
......@@ -160,7 +160,6 @@
"@types/jest": "29.5.5",
"@types/js-yaml": "4.0.9",
"@types/node": "20.17.7",
"@types/node-fetch": "2.6.1",
"@types/react": "19.2.18",
"@types/react-dom": "19.2.4",
"@types/shell-quote": "1.7.1",
......@@ -239,7 +238,6 @@
"moment": "^2.24.0",
"nanoid": "3.1.30",
"next": "workspace:*",
"node-fetch": "2.6.7",
"node-plop": "0.31.1",
"npm-run-all": "4.1.5",
"nprogress": "0.2.0",
......
......@@ -217,9 +217,6 @@ importers:
'@types/node':
specifier: 20.17.7
version: 20.17.7(patch_hash=fe6957869a9b616ec526ededb72bbe846b863bd2349204218772df5c1e62d6ab)
'@types/node-fetch':
specifier: 2.6.1
version: 2.6.1
'@types/react':
specifier: 19.2.18
version: 19.2.18
......@@ -454,9 +451,6 @@ importers:
next:
specifier: workspace:*
version: link:packages/next
node-fetch:
specifier: 2.6.7
version: 2.6.7(encoding@0.1.13)
node-plop:
specifier: 0.31.1
version: 0.31.1
......@@ -7310,9 +7304,6 @@ packages:
'@types/mute-stream@0.0.4':
resolution: {integrity: sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==}
'@types/node-fetch@2.6.1':
resolution: {integrity: sha512-oMqjURCaxoSIsHSr1E47QHzbmzNR5rK8McHuNb11BOM9cHcIK3Avy0s/b2JlXHoQGTYS3NsvWzV1M0iK7l0wbA==}
'@types/node-forge@1.3.11':
resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==}
......@@ -11144,10 +11135,6 @@ packages:
resolution: {integrity: sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==}
engines: {node: '>= 0.12'}
form-data@3.0.1:
resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==}
engines: {node: '>= 6'}
form-data@4.0.0:
resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==}
engines: {node: '>= 6'}
......@@ -24626,11 +24613,6 @@ snapshots:
dependencies:
'@types/node': 20.17.7(patch_hash=fe6957869a9b616ec526ededb72bbe846b863bd2349204218772df5c1e62d6ab)
'@types/node-fetch@2.6.1':
dependencies:
'@types/node': 20.17.7(patch_hash=fe6957869a9b616ec526ededb72bbe846b863bd2349204218772df5c1e62d6ab)
form-data: 3.0.1
'@types/node-forge@1.3.11':
dependencies:
'@types/node': 20.17.7(patch_hash=fe6957869a9b616ec526ededb72bbe846b863bd2349204218772df5c1e62d6ab)
......@@ -29410,12 +29392,6 @@ snapshots:
combined-stream: 1.0.8
mime-types: 2.1.35
form-data@3.0.1:
dependencies:
asynckit: 0.4.0
combined-stream: 1.0.8
mime-types: 2.1.35
form-data@4.0.0:
dependencies:
asynckit: 0.4.0
// @ts-check
import fetch from 'node-fetch'
export async function main() {
const releasesArray = await fetch(
......
import fetch from 'node-fetch'
export const TEST_PROJECT_NAME = 'vtest314-e2e-tests'
export const TEST_TEAM_NAME = process.env.VERCEL_TEST_TEAM
export const TEST_TOKEN = process.env.VERCEL_TEST_TOKEN
......
......@@ -2,7 +2,6 @@
const fs = require('fs/promises')
const path = require('path')
const fetch = require('node-fetch')
;(async () => {
const { familyMetadataList } = await fetch(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment