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 @@
// @ts-check
const crypto = require('crypto');
const crypto = require('node:crypto');
/**
* @param {import('knex').Knex} knex
@@ -30,7 +30,7 @@ import {
NotificationSeverity,
} from '@backstage/plugin-notifications-common';
import { Knex } from 'knex';
import crypto from 'crypto';
import crypto from 'node:crypto';
import { durationToMilliseconds, HumanDuration } from '@backstage/types';
const migrationsDir = resolvePackagePath(
@@ -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();