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
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { resolve } from 'path';
import { resolve } from 'node:path';
import { OptionValues } from 'commander';
import fs from 'fs-extra';
import {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { resolve } from 'path';
import { resolve } from 'node:path';
import { OptionValues } from 'commander';
import { createLogger } from '../../lib/utility';
import { HostDiscovery } from '@backstage/backend-defaults/discovery';
@@ -15,7 +15,7 @@
*/
import { OptionValues } from 'commander';
import path from 'path';
import path from 'node:path';
import openBrowser from 'react-dev-utils/openBrowser';
import { findPaths, RunOnOutput } from '@backstage/cli-common';
import HTTPServer from '../../lib/httpServer';
+1 -1
View File
@@ -15,7 +15,7 @@
*/
import serveHandler from 'serve-handler';
import http from 'http';
import http from 'node:http';
import httpProxy from 'http-proxy';
import { createLogger } from './utility';
import {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import http from 'http';
import http from 'node:http';
import {
injectLivereloadParameters,
proxyHtmlWithLivereloadInjection,
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import http from 'http';
import http from 'node:http';
import httpProxy from 'http-proxy';
/**
+2 -2
View File
@@ -18,8 +18,8 @@ import {
ParsedLocationAnnotation,
} from '@backstage/plugin-techdocs-node';
import * as winston from 'winston';
import { Writable } from 'stream';
import { stdout } from 'process';
import { Writable } from 'node:stream';
import { stdout } from 'node:process';
export const convertTechDocsRefToLocationAnnotation = (
techdocsRef: string,