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 { extname } from 'path';
import { extname } from 'node:path';
import { RequestHandler } from 'express';
import { StaticAssetProvider } from './types';
import { CACHE_CONTROL_MAX_CACHE } from '../headers';
@@ -15,7 +15,7 @@
*/
import fs from 'fs-extra';
import { resolve as resolvePath } from 'path';
import { resolve as resolvePath } from 'node:path';
import { InjectOptions } from './types';
import compileTemplate from 'lodash/template';
import { Config, ConfigReader } from '@backstage/config';
@@ -15,7 +15,7 @@
*/
import fs from 'fs-extra';
import { resolve as resolvePath } from 'path';
import { resolve as resolvePath } from 'node:path';
import { InjectOptions } from './types';
/**
@@ -15,7 +15,7 @@
*/
import fs from 'fs-extra';
import { resolve as resolvePath } from 'path';
import { resolve as resolvePath } from 'node:path';
import { AppConfig, Config } from '@backstage/config';
import { JsonObject } from '@backstage/types';
import {
+1 -1
View File
@@ -16,7 +16,7 @@
import { Knex } from 'knex';
import { TestDatabases } from '@backstage/backend-test-utils';
import fs from 'fs';
import fs from 'node:fs';
const migrationsDir = `${__dirname}/../migrations`;
const migrationsFiles = fs.readdirSync(migrationsDir).sort();
@@ -17,7 +17,7 @@
import { AppConfig } from '@backstage/config';
import express from 'express';
import Router from 'express-promise-router';
import { resolve as resolvePath } from 'path';
import { resolve as resolvePath } from 'node:path';
import request from 'supertest';
import { createRouter } from './router';
import { loadConfigSchema } from '@backstage/config-loader';
+1 -1
View File
@@ -24,7 +24,7 @@ import helmet from 'helmet';
import express, { Request, Response } from 'express';
import Router from 'express-promise-router';
import fs from 'fs-extra';
import { resolve as resolvePath } from 'path';
import { resolve as resolvePath } from 'node:path';
import {
createStaticAssetMiddleware,
findStaticAssets,