require the use of node prefix on native imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user