mirror of
https://github.com/strapi/strapi.git
synced 2025-09-19 13:31:34 +00:00
fix semver diff import
This commit is contained in:
parent
84976754a4
commit
b87da78f61
@ -1,7 +1,8 @@
|
|||||||
import { PassThrough, Stream } from 'stream-chain';
|
import { PassThrough } from 'stream-chain';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { isEmpty, uniq } from 'lodash/fp';
|
import { isEmpty, uniq } from 'lodash/fp';
|
||||||
import type { Schema } from '@strapi/strapi';
|
import type { Schema } from '@strapi/strapi';
|
||||||
|
import { diff as semverDiff } from 'semver';
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
Diff,
|
Diff,
|
||||||
@ -17,8 +18,6 @@ import type {
|
|||||||
} from '../../types';
|
} from '../../types';
|
||||||
|
|
||||||
import compareSchemas from '../strategies';
|
import compareSchemas from '../strategies';
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
||||||
const semverDiff = require('semver/functions/diff');
|
|
||||||
|
|
||||||
type TransferProgress = {
|
type TransferProgress = {
|
||||||
[key in TransferStage]?: {
|
[key in TransferStage]?: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user