diff --git a/packages/contentstack-import/src/import/modules/custom-roles.ts b/packages/contentstack-import/src/import/modules/custom-roles.ts index 93f0e06b58..240db7a680 100644 --- a/packages/contentstack-import/src/import/modules/custom-roles.ts +++ b/packages/contentstack-import/src/import/modules/custom-roles.ts @@ -1,6 +1,6 @@ import isEmpty from 'lodash/isEmpty'; import values from 'lodash/values'; -import { join, resolve } from 'node:path'; +import { join } from 'node:path'; import { log, formatError, fsUtil, fileHelper } from '../../utils'; import BaseClass, { ApiOptions } from './base-class'; @@ -118,7 +118,7 @@ export default class ImportCustomRoles extends BaseClass { async importCustomRoles() { if (this.customRoles === undefined || isEmpty(this.customRoles)) { log(this.importConfig, 'No custom-roles found', 'info'); - return resolve(); + return; } const apiContent = values(this.customRoles); diff --git a/packages/contentstack-import/src/import/modules/environments.ts b/packages/contentstack-import/src/import/modules/environments.ts index 98c933b09f..7bff9e57c6 100644 --- a/packages/contentstack-import/src/import/modules/environments.ts +++ b/packages/contentstack-import/src/import/modules/environments.ts @@ -1,6 +1,6 @@ import isEmpty from 'lodash/isEmpty'; import values from 'lodash/values'; -import { join, resolve } from 'node:path'; +import { join } from 'node:path'; import { log, formatError, fsUtil, fileHelper } from '../../utils'; import BaseClass, { ApiOptions } from './base-class'; @@ -67,7 +67,7 @@ export default class ImportEnvironments extends BaseClass { async importEnvironments() { if (this.environments === undefined || isEmpty(this.environments)) { log(this.importConfig, 'No Environment Found', 'info'); - return resolve(); + return; } const apiContent = values(this.environments); diff --git a/packages/contentstack-import/src/import/modules/extensions.ts b/packages/contentstack-import/src/import/modules/extensions.ts index 31b0b35f5c..adaa33f477 100644 --- a/packages/contentstack-import/src/import/modules/extensions.ts +++ b/packages/contentstack-import/src/import/modules/extensions.ts @@ -1,6 +1,6 @@ import isEmpty from 'lodash/isEmpty'; import values from 'lodash/values'; -import { join, resolve } from 'node:path'; +import { join } from 'node:path'; import { log, formatError, fsUtil, fileHelper } from '../../utils'; import BaseClass, { ApiOptions } from './base-class'; @@ -67,7 +67,7 @@ export default class ImportExtensions extends BaseClass { async importExtensions(): Promise { if (this.extensions === undefined || isEmpty(this.extensions)) { log(this.importConfig, 'No Extensions Found', 'info'); - return resolve(); + return; } const apiContent = values(this.extensions); diff --git a/packages/contentstack-import/src/import/modules/labels.ts b/packages/contentstack-import/src/import/modules/labels.ts index 6bcd49283a..2ba0d5eddb 100644 --- a/packages/contentstack-import/src/import/modules/labels.ts +++ b/packages/contentstack-import/src/import/modules/labels.ts @@ -1,7 +1,7 @@ import isEmpty from 'lodash/isEmpty'; import values from 'lodash/values'; import omit from 'lodash/omit'; -import { join, resolve } from 'node:path'; +import { join } from 'node:path'; import { log, formatError, fsUtil, fileHelper } from '../../utils'; import BaseClass, { ApiOptions } from './base-class'; @@ -72,7 +72,7 @@ export default class Importlabels extends BaseClass { async importlabels() { if (this.labels === undefined || isEmpty(this.labels)) { log(this.importConfig, 'No Label Found', 'info'); - return resolve(); + return; } const apiContent = values(this.labels); diff --git a/packages/contentstack-import/src/import/modules/webhooks.ts b/packages/contentstack-import/src/import/modules/webhooks.ts index 56c2316721..35dc814d93 100644 --- a/packages/contentstack-import/src/import/modules/webhooks.ts +++ b/packages/contentstack-import/src/import/modules/webhooks.ts @@ -1,6 +1,6 @@ import isEmpty from 'lodash/isEmpty'; import values from 'lodash/values'; -import { join, resolve } from 'node:path'; +import { join } from 'node:path'; import { log, formatError, fsUtil, fileHelper } from '../../utils'; import BaseClass, { ApiOptions } from './base-class'; @@ -69,7 +69,7 @@ export default class ImportWebhooks extends BaseClass { async importWebhooks() { if (this.webhooks === undefined || isEmpty(this.webhooks)) { log(this.importConfig, 'No Webhook Found', 'info'); - return resolve(); + return; } const apiContent = values(this.webhooks);