diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 54c7e216..7acc6fc7 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -65,7 +65,7 @@ jobs: - name: Setup node.js uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x cache: 'npm' - name: Step rust toolchain @@ -151,7 +151,7 @@ jobs: - name: Setup node.js uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x cache: 'npm' - name: Step rust toolchain diff --git a/src/extension.ts b/src/extension.ts index c9648001..4b29c237 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1,4 +1,3 @@ -import '@/setup/global-binding' import { setupExtTreeView } from '@/tree-view/tree-view-register' import { setupCmd } from '@/setup/setup-cmd' import { globalCtx } from '@/ctx/global-ctx' diff --git a/src/setup/global-binding.ts b/src/setup/global-binding.ts deleted file mode 100644 index 9e48f997..00000000 --- a/src/setup/global-binding.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* eslint-disable */ - -import fetch, { Headers, Request, Response } from 'node-fetch' - -// @ts-ignore -global.fetch = fetch -// @ts-ignore -global.Headers = Headers -// @ts-ignore -global.Request = Request -// @ts-ignore -global.Response = Response - -import { Blob, File, FormData } from 'formdata-node' - -global.FormData = FormData -global.Blob = Blob -global.File = File