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
@@ -16,7 +16,7 @@
import { AnyJWK, KeyStore, StoredKey } from './types';
import { exportJWK, importPKCS8, importSPKI, JWK } from 'jose';
import { KeyLike } from 'jose';
import { promises as fs } from 'fs';
import { promises as fs } from 'node:fs';
import { Config } from '@backstage/config';
export type KeyPair = {
+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();
@@ -27,7 +27,7 @@ import {
mockCredentials,
} from '@backstage/backend-test-utils';
import request from 'supertest';
import crypto from 'crypto';
import crypto from 'node:crypto';
import { OidcRouter } from './OidcRouter';
import { UserInfoDatabase } from '../database/UserInfoDatabase';
import { OidcDatabase } from '../database/OidcDatabase';
@@ -28,7 +28,7 @@ import {
import { AuthDatabase } from '../database/AuthDatabase';
import { OidcDatabase } from '../database/OidcDatabase';
import { UserInfoDatabase } from '../database/UserInfoDatabase';
import crypto from 'crypto';
import crypto from 'node:crypto';
import { AnyJWK, TokenIssuer } from '../identity/types';
jest.setTimeout(60_000);
@@ -22,7 +22,7 @@ import {
NotFoundError,
} from '@backstage/errors';
import { decodeJwt } from 'jose';
import crypto from 'crypto';
import crypto from 'node:crypto';
import { OidcDatabase } from '../database/OidcDatabase';
import { DateTime } from 'luxon';
import matcher from 'matcher';