diff --git a/packages/core/data-transfer/lib/engine/index.ts b/packages/core/data-transfer/lib/engine/index.ts index 09f3e1bb26..33e81237ef 100644 --- a/packages/core/data-transfer/lib/engine/index.ts +++ b/packages/core/data-transfer/lib/engine/index.ts @@ -1,7 +1,8 @@ -import { PassThrough, Stream } from 'stream-chain'; +import { PassThrough } from 'stream-chain'; import * as path from 'path'; import { isEmpty, uniq } from 'lodash/fp'; import type { Schema } from '@strapi/strapi'; +import { diff as semverDiff } from 'semver'; import type { Diff, @@ -17,8 +18,6 @@ import type { } from '../../types'; import compareSchemas from '../strategies'; -// eslint-disable-next-line @typescript-eslint/no-var-requires -const semverDiff = require('semver/functions/diff'); type TransferProgress = { [key in TransferStage]?: {