require the use of node prefix on native imports

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2026-01-25 13:47:32 +01:00
parent 4ad63b8d9f
commit 7455dae884
444 changed files with 749 additions and 634 deletions
@@ -30,7 +30,7 @@ import {
PodStatusFetchResponse,
} from '@backstage/plugin-kubernetes-common';
import fetch, { RequestInit, Response } from 'node-fetch';
import * as https from 'https';
import * as https from 'node:https';
import fs from 'fs-extra';
import { JsonObject } from '@backstage/types';
import {
@@ -14,8 +14,8 @@
* limitations under the License.
*/
import 'buffer';
import { resolve as resolvePath } from 'path';
import 'node:buffer';
import { resolve as resolvePath } from 'node:path';
import {
createMockDirectory,
mockServices,
@@ -29,7 +29,7 @@ import {
import { getMockReq, getMockRes } from '@jest-mock/express';
import express from 'express';
import Router from 'express-promise-router';
import { Server } from 'http';
import { Server } from 'node:http';
import { rest } from 'msw';
import { setupServer } from 'msw/node';
import request from 'supertest';
@@ -38,7 +38,7 @@ import {
} from '@backstage/plugin-kubernetes-node';
import type { Request } from 'express';
import { IncomingHttpHeaders } from 'http';
import { IncomingHttpHeaders } from 'node:http';
import {
DiscoveryService,
HttpAuthService,