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
+2 -2
View File
@@ -14,8 +14,8 @@
* limitations under the License.
*/
import { join as joinPath } from 'path';
import { spawn, SpawnOptionsWithoutStdio } from 'child_process';
import { join as joinPath } from 'node:path';
import { spawn, SpawnOptionsWithoutStdio } from 'node:child_process';
import fs from 'fs-extra';
import yaml from 'yaml';
import { buildDepTreeFromFiles } from 'snyk-nodejs-lockfile-parser';
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import assert from 'assert';
import assert from 'node:assert';
import { valid as semverValid } from 'semver';
import { ppath, xfs } from '@yarnpkg/fslib';
import { BACKSTAGE_JSON } from '@backstage/cli-common';
@@ -25,7 +25,7 @@ import { getManifestByVersion } from '@backstage/release-manifests';
import { PROTOCOL } from '../constants';
import { getCurrentBackstageVersion } from './getCurrentBackstageVersion';
import { env } from 'process';
import { env } from 'node:process';
export const getPackageVersion = async (
descriptor: Descriptor,