Removed @framework imports within framework providers

This commit is contained in:
Luis Alvarez
2021-02-25 16:54:18 -05:00
parent 121ec4b61f
commit 46ae76c67f
21 changed files with 40 additions and 47 deletions

View File

@@ -7,10 +7,10 @@ import {
SHOPIFY_CHECKOUT_ID_COOKIE,
SHOPIFY_CHECKOUT_URL_COOKIE,
SHOPIFY_CUSTOMER_TOKEN_COOKIE,
} from '@framework/const'
} from '../../const'
import { getConfig } from '..'
import associateCustomerWithCheckoutMutation from '@framework/utils/mutations/associate-customer-with-checkout'
import associateCustomerWithCheckoutMutation from '../../utils/mutations/associate-customer-with-checkout'
const METHODS = ['GET']

View File

@@ -5,7 +5,7 @@ import {
API_TOKEN,
SHOPIFY_CHECKOUT_ID_COOKIE,
SHOPIFY_CUSTOMER_TOKEN_COOKIE,
} from '@framework/const'
} from '../const'
if (!API_URL) {
console.log(process.env)

View File

@@ -1,4 +1,4 @@
import { ProductEdge } from '@framework/schema'
import { ProductEdge } from '../../schema'
import { ShopifyConfig } from '..'
const fetchAllProducts = async ({

View File

@@ -2,7 +2,7 @@ import type { GraphQLFetcher } from '@commerce/api'
import fetch from './fetch'
import { API_URL, API_TOKEN } from '../../const'
import { getError } from '@framework/utils/handle-fetch-response'
import { getError } from '../../utils/handle-fetch-response'
const fetchGraphqlApi: GraphQLFetcher = async (
query: string,