瀏覽代碼

fix(core): Fix incorrect common import paths

Michael Bromley 4 年之前
父節點
當前提交
568e4b2f4a

+ 1 - 1
packages/core/src/entity/fulfillment/fulfillment.entity.ts

@@ -1,6 +1,6 @@
+import { DeepPartial } from '@vendure/common/lib/shared-types';
 import { Column, Entity, ManyToMany, OneToMany } from 'typeorm';
 
-import { DeepPartial } from '../../../../common/lib/shared-types';
 import { HasCustomFields } from '../../config/custom-field/custom-field-types';
 import { FulfillmentState } from '../../service/helpers/fulfillment-state-machine/fulfillment-state';
 import { VendureEntity } from '../base/base.entity';

+ 2 - 2
packages/core/src/plugin/dynamic-plugin-api.module.ts

@@ -1,7 +1,7 @@
 import { DynamicModule } from '@nestjs/common';
+import { Type } from '@vendure/common/lib/shared-types';
+import { notNullOrUndefined } from '@vendure/common/lib/shared-utils';
 
-import { Type } from '../../../common/lib/shared-types';
-import { notNullOrUndefined } from '../../../common/lib/shared-utils';
 import { getConfig } from '../config/config-helpers';
 
 import { getModuleMetadata, graphQLResolversFor, isDynamicModule } from './plugin-metadata';

+ 1 - 2
packages/core/src/plugin/plugin-metadata.ts

@@ -1,8 +1,7 @@
 import { DynamicModule } from '@nestjs/common';
 import { MODULE_METADATA } from '@nestjs/common/constants';
 import { Type } from '@vendure/common/lib/shared-types';
-
-import { notNullOrUndefined } from '../../../common/lib/shared-utils';
+import { notNullOrUndefined } from '@vendure/common/lib/shared-utils';
 
 import { APIExtensionDefinition, PluginConfigurationFn } from './vendure-plugin';
 

+ 1 - 1
packages/core/src/service/services/order-testing.service.ts

@@ -7,8 +7,8 @@ import {
     TestShippingMethodQuote,
     TestShippingMethodResult,
 } from '@vendure/common/lib/generated-types';
+import { ID } from '@vendure/common/lib/shared-types';
 
-import { ID } from '../../../../common/lib/shared-types';
 import { RequestContext } from '../../api/common/request-context';
 import { grossPriceOf, netPriceOf } from '../../common/tax-utils';
 import { ConfigService } from '../../config/config.service';