chore: use framework sub paths everywhere (#9253)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { AdminOptions, ConfigModule } from "@medusajs/types"
|
||||
import { AdminOptions, ConfigModule } from "@medusajs/framework/types"
|
||||
import { Express } from "express"
|
||||
import fs from "fs"
|
||||
import path from "path"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Express } from "express"
|
||||
import { join } from "path"
|
||||
import qs from "qs"
|
||||
import { RoutesLoader } from "@medusajs/framework"
|
||||
import { MedusaContainer, PluginDetails } from "@medusajs/types"
|
||||
import { RoutesLoader } from "@medusajs/framework/http"
|
||||
import { MedusaContainer, PluginDetails } from "@medusajs/framework/types"
|
||||
|
||||
type Options = {
|
||||
app: Express
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FlagSettings } from "@medusajs/framework"
|
||||
import { FlagSettings } from "@medusajs/framework/feature-flags"
|
||||
|
||||
const AnalyticsFeatureFlag: FlagSettings = {
|
||||
key: "analytics",
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { MedusaV2Flag } from "@medusajs/utils"
|
||||
import { MedusaV2Flag } from "@medusajs/framework/utils"
|
||||
|
||||
export default MedusaV2Flag
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FlagSettings } from "@medusajs/framework"
|
||||
import { FlagSettings } from "@medusajs/framework/feature-flags"
|
||||
|
||||
const OrderEditingFeatureFlag: FlagSettings = {
|
||||
key: "order_editing",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FlagSettings } from "@medusajs/framework"
|
||||
import { FlagSettings } from "@medusajs/framework/feature-flags"
|
||||
|
||||
const ProductCategoryFeatureFlag: FlagSettings = {
|
||||
key: "product_categories",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FlagSettings } from "@medusajs/framework"
|
||||
import { FlagSettings } from "@medusajs/framework/feature-flags"
|
||||
|
||||
const PublishableAPIKeysFeatureFlag: FlagSettings = {
|
||||
key: "publishable_api_keys",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FlagSettings } from "@medusajs/framework"
|
||||
import { FlagSettings } from "@medusajs/framework/feature-flags"
|
||||
|
||||
const SalesChannelFeatureFlag: FlagSettings = {
|
||||
key: "sales_channels",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FlagSettings } from "@medusajs/framework"
|
||||
import { FlagSettings } from "@medusajs/framework/feature-flags"
|
||||
|
||||
const TaxInclusivePricingFeatureFlag: FlagSettings = {
|
||||
key: "tax_inclusive_pricing",
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { WorkflowsFeatureFlag } from "@medusajs/utils"
|
||||
import { WorkflowsFeatureFlag } from "@medusajs/framework/utils"
|
||||
|
||||
export default WorkflowsFeatureFlag
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ConfigModule, PluginDetails } from "@medusajs/types"
|
||||
import { isString } from "@medusajs/utils"
|
||||
import { ConfigModule, PluginDetails } from "@medusajs/framework/types"
|
||||
import { isString } from "@medusajs/framework/utils"
|
||||
import fs from "fs"
|
||||
import { sync as existsSync } from "fs-exists-cached"
|
||||
import path, { isAbsolute } from "path"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
import { ConfigModule, MedusaContainer, PluginDetails } from "@medusajs/types"
|
||||
import { ContainerRegistrationKeys, promiseAll, GraphQLSchema } from "@medusajs/utils"
|
||||
import {
|
||||
ConfigModule,
|
||||
MedusaContainer,
|
||||
PluginDetails,
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
promiseAll,
|
||||
GraphQLSchema,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { asValue } from "awilix"
|
||||
import { Express, NextFunction, Request, Response } from "express"
|
||||
import { join } from "path"
|
||||
@@ -7,19 +15,16 @@ import requestIp from "request-ip"
|
||||
import { v4 } from "uuid"
|
||||
import adminLoader from "./admin"
|
||||
import apiLoader from "./api"
|
||||
import {
|
||||
configLoader,
|
||||
container,
|
||||
expressLoader,
|
||||
featureFlagsLoader,
|
||||
JobLoader,
|
||||
LinkLoader,
|
||||
logger,
|
||||
MedusaAppLoader,
|
||||
pgConnectionLoader,
|
||||
SubscriberLoader,
|
||||
WorkflowLoader,
|
||||
} from "@medusajs/framework"
|
||||
import { configLoader } from "@medusajs/framework/config"
|
||||
import { expressLoader } from "@medusajs/framework/http"
|
||||
import { JobLoader } from "@medusajs/framework/jobs"
|
||||
import { LinkLoader } from "@medusajs/framework/links"
|
||||
import { logger } from "@medusajs/framework/logger"
|
||||
import { container, MedusaAppLoader } from "@medusajs/framework"
|
||||
import { pgConnectionLoader } from "@medusajs/framework/database"
|
||||
import { SubscriberLoader } from "@medusajs/framework/subscribers"
|
||||
import { WorkflowLoader } from "@medusajs/framework/workflows"
|
||||
import { featureFlagsLoader } from "@medusajs/framework/feature-flags"
|
||||
import { getResolvedPlugins } from "./helpers/resolve-plugins"
|
||||
|
||||
type Options = {
|
||||
|
||||
Reference in New Issue
Block a user