breaking: rename package names to be consistent and under @medusajs scope (#9580)
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
"watch": "tsc --watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/telemetry": "^0.0.17",
|
||||
"boxen": "^5",
|
||||
"chalk": "^5.2.0",
|
||||
"commander": "^10.0.1",
|
||||
"inquirer": "^9.2.2",
|
||||
"medusa-telemetry": "^0.0.17",
|
||||
"nanoid": "^4.0.2",
|
||||
"node-emoji": "^2.0.2",
|
||||
"node-fetch": "^3.3.1",
|
||||
|
||||
@@ -13,7 +13,7 @@ import logMessage from "../utils/log-message.js"
|
||||
import createAbortController, {
|
||||
isAbortError,
|
||||
} from "../utils/create-abort-controller.js"
|
||||
import { track } from "medusa-telemetry"
|
||||
import { track } from "@medusajs/telemetry"
|
||||
import boxen from "boxen"
|
||||
import { emojify } from "node-emoji"
|
||||
import ProcessManager from "../utils/process-manager.js"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@medusajs/medusa-cli",
|
||||
"name": "@medusajs/cli",
|
||||
"version": "1.3.22",
|
||||
"description": "Command Line interface for Medusa Commerce",
|
||||
"main": "dist/index.js",
|
||||
@@ -46,6 +46,7 @@
|
||||
"typescript": "^5.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/telemetry": "^0.0.17",
|
||||
"@medusajs/utils": "1.11.9",
|
||||
"@types/express": "^4.17.17",
|
||||
"chalk": "^4.0.0",
|
||||
@@ -60,7 +61,6 @@
|
||||
"inquirer": "^8.0.0",
|
||||
"is-valid-path": "^0.1.1",
|
||||
"meant": "^1.0.3",
|
||||
"medusa-telemetry": "^0.0.17",
|
||||
"ora": "^5.4.1",
|
||||
"pg": "^8.11.3",
|
||||
"pg-god": "^1.0.12",
|
||||
|
||||
@@ -16,7 +16,7 @@ import url from "url"
|
||||
// @ts-ignore
|
||||
import inquirer from "inquirer"
|
||||
import { createDatabase } from "pg-god"
|
||||
import { track } from "medusa-telemetry"
|
||||
import { track } from "@medusajs/telemetry"
|
||||
|
||||
import reporter from "../reporter"
|
||||
import { getPackageManager, setPackageManager } from "../util/package-manager"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { sync as existsSync } from "fs-exists-cached"
|
||||
import { setTelemetryEnabled } from "medusa-telemetry"
|
||||
import { setTelemetryEnabled } from "@medusajs/telemetry"
|
||||
import path from "path"
|
||||
import resolveCwd from "resolve-cwd"
|
||||
import { newStarter } from "./commands/new"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { track } from "medusa-telemetry"
|
||||
import { track } from "@medusajs/telemetry"
|
||||
import ora from "ora"
|
||||
import stackTrace from "stack-trace"
|
||||
import { ulid } from "ulid"
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
"test": "jest --runInBand --bail --passWithNoTests --forceExit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/medusa-cli": "^1.3.22",
|
||||
"@medusajs/cli": "^1.3.22",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/knex": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -73,6 +73,7 @@
|
||||
"@jercle/yargonaut": "^1.1.5",
|
||||
"@medusajs/modules-sdk": "^1.12.11",
|
||||
"@medusajs/orchestration": "^0.5.7",
|
||||
"@medusajs/telemetry": "^0.0.17",
|
||||
"@medusajs/types": "^1.11.16",
|
||||
"@medusajs/utils": "^1.11.9",
|
||||
"@medusajs/workflows-sdk": "^0.1.6",
|
||||
@@ -84,13 +85,12 @@
|
||||
"express": "^4.21.0",
|
||||
"express-session": "^1.17.3",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"medusa-telemetry": "^0.0.17",
|
||||
"morgan": "^1.9.1",
|
||||
"tsconfig-paths": "^4.2.0",
|
||||
"zod": "3.22.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@medusajs/medusa-cli": "^1.3.22",
|
||||
"@medusajs/cli": "^1.3.22",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/knex": "5.9.7",
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
isTruthy,
|
||||
objectFromStringPath,
|
||||
} from "@medusajs/utils"
|
||||
import { trackFeatureFlag } from "medusa-telemetry"
|
||||
import { trackFeatureFlag } from "@medusajs/telemetry"
|
||||
import { join, normalize } from "path"
|
||||
import { logger } from "../logger"
|
||||
import { FlagSettings } from "./types"
|
||||
|
||||
@@ -12,6 +12,6 @@ export * from "./workflows"
|
||||
export * from "./telemetry"
|
||||
export * from "./zod"
|
||||
|
||||
export const MEDUSA_CLI_PATH = require.resolve("@medusajs/medusa-cli")
|
||||
export const MEDUSA_CLI_PATH = require.resolve("@medusajs/cli")
|
||||
|
||||
export { Query } from "@medusajs/modules-sdk"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import logger from "@medusajs/medusa-cli/dist/reporter"
|
||||
import logger from "@medusajs/cli/dist/reporter"
|
||||
|
||||
export { logger }
|
||||
|
||||
@@ -19,7 +19,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "emailpass",
|
||||
"resolve": "@medusajs/auth-emailpass",
|
||||
"resolve": "@medusajs/medusa/auth-emailpass",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -45,7 +45,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "local",
|
||||
"resolve": "@medusajs/file-local-next",
|
||||
"resolve": "@medusajs/medusa/file-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -56,14 +56,14 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "manual",
|
||||
"resolve": "@medusajs/fulfillment-manual",
|
||||
"resolve": "@medusajs/medusa/fulfillment-manual",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/medusa/fulfillment",
|
||||
},
|
||||
"inventory": {
|
||||
"resolve": "@medusajs/medusa/inventory-next",
|
||||
"resolve": "@medusajs/medusa/inventory",
|
||||
},
|
||||
"locking": {
|
||||
"resolve": "@medusajs/medusa/locking",
|
||||
@@ -79,7 +79,7 @@ describe("defineConfig", function () {
|
||||
],
|
||||
"name": "Local Notification Provider",
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
"resolve": "@medusajs/medusa/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -107,7 +107,7 @@ describe("defineConfig", function () {
|
||||
"resolve": "@medusajs/medusa/sales-channel",
|
||||
},
|
||||
"stock_location": {
|
||||
"resolve": "@medusajs/medusa/stock-location-next",
|
||||
"resolve": "@medusajs/medusa/stock-location",
|
||||
},
|
||||
"store": {
|
||||
"resolve": "@medusajs/medusa/store",
|
||||
@@ -168,7 +168,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "emailpass",
|
||||
"resolve": "@medusajs/auth-emailpass",
|
||||
"resolve": "@medusajs/medusa/auth-emailpass",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -194,7 +194,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "local",
|
||||
"resolve": "@medusajs/file-local-next",
|
||||
"resolve": "@medusajs/medusa/file-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -205,14 +205,14 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "manual",
|
||||
"resolve": "@medusajs/fulfillment-manual",
|
||||
"resolve": "@medusajs/medusa/fulfillment-manual",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/medusa/fulfillment",
|
||||
},
|
||||
"inventory": {
|
||||
"resolve": "@medusajs/medusa/inventory-next",
|
||||
"resolve": "@medusajs/medusa/inventory",
|
||||
},
|
||||
"locking": {
|
||||
"resolve": "@medusajs/medusa/locking",
|
||||
@@ -228,7 +228,7 @@ describe("defineConfig", function () {
|
||||
],
|
||||
"name": "Local Notification Provider",
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
"resolve": "@medusajs/medusa/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -256,7 +256,7 @@ describe("defineConfig", function () {
|
||||
"resolve": "@medusajs/medusa/sales-channel",
|
||||
},
|
||||
"stock_location": {
|
||||
"resolve": "@medusajs/medusa/stock-location-next",
|
||||
"resolve": "@medusajs/medusa/stock-location",
|
||||
},
|
||||
"store": {
|
||||
"resolve": "@medusajs/medusa/store",
|
||||
@@ -325,7 +325,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "emailpass",
|
||||
"resolve": "@medusajs/auth-emailpass",
|
||||
"resolve": "@medusajs/medusa/auth-emailpass",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -351,7 +351,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "local",
|
||||
"resolve": "@medusajs/file-local-next",
|
||||
"resolve": "@medusajs/medusa/file-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -362,14 +362,14 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "manual",
|
||||
"resolve": "@medusajs/fulfillment-manual",
|
||||
"resolve": "@medusajs/medusa/fulfillment-manual",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/medusa/fulfillment",
|
||||
},
|
||||
"inventory": {
|
||||
"resolve": "@medusajs/medusa/inventory-next",
|
||||
"resolve": "@medusajs/medusa/inventory",
|
||||
},
|
||||
"locking": {
|
||||
"resolve": "@medusajs/medusa/locking",
|
||||
@@ -385,7 +385,7 @@ describe("defineConfig", function () {
|
||||
],
|
||||
"name": "Local Notification Provider",
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
"resolve": "@medusajs/medusa/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -413,7 +413,7 @@ describe("defineConfig", function () {
|
||||
"resolve": "@medusajs/medusa/sales-channel",
|
||||
},
|
||||
"stock_location": {
|
||||
"resolve": "@medusajs/medusa/stock-location-next",
|
||||
"resolve": "@medusajs/medusa/stock-location",
|
||||
},
|
||||
"store": {
|
||||
"resolve": "@medusajs/medusa/store",
|
||||
@@ -483,7 +483,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "emailpass",
|
||||
"resolve": "@medusajs/auth-emailpass",
|
||||
"resolve": "@medusajs/medusa/auth-emailpass",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -509,7 +509,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "local",
|
||||
"resolve": "@medusajs/file-local-next",
|
||||
"resolve": "@medusajs/medusa/file-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -520,14 +520,14 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "manual",
|
||||
"resolve": "@medusajs/fulfillment-manual",
|
||||
"resolve": "@medusajs/medusa/fulfillment-manual",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/medusa/fulfillment",
|
||||
},
|
||||
"inventory": {
|
||||
"resolve": "@medusajs/medusa/inventory-next",
|
||||
"resolve": "@medusajs/medusa/inventory",
|
||||
},
|
||||
"locking": {
|
||||
"resolve": "@medusajs/medusa/locking",
|
||||
@@ -543,7 +543,7 @@ describe("defineConfig", function () {
|
||||
],
|
||||
"name": "Local Notification Provider",
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
"resolve": "@medusajs/medusa/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -571,7 +571,7 @@ describe("defineConfig", function () {
|
||||
"resolve": "@medusajs/medusa/sales-channel",
|
||||
},
|
||||
"stock_location": {
|
||||
"resolve": "@medusajs/medusa/stock-location-next",
|
||||
"resolve": "@medusajs/medusa/stock-location",
|
||||
},
|
||||
"store": {
|
||||
"resolve": "@medusajs/medusa/store",
|
||||
@@ -629,7 +629,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "emailpass",
|
||||
"resolve": "@medusajs/auth-emailpass",
|
||||
"resolve": "@medusajs/medusa/auth-emailpass",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -655,7 +655,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "local",
|
||||
"resolve": "@medusajs/file-local-next",
|
||||
"resolve": "@medusajs/medusa/file-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -666,14 +666,14 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "manual",
|
||||
"resolve": "@medusajs/fulfillment-manual",
|
||||
"resolve": "@medusajs/medusa/fulfillment-manual",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/medusa/fulfillment",
|
||||
},
|
||||
"inventory": {
|
||||
"resolve": "@medusajs/medusa/inventory-next",
|
||||
"resolve": "@medusajs/medusa/inventory",
|
||||
},
|
||||
"locking": {
|
||||
"resolve": "@medusajs/medusa/locking",
|
||||
@@ -689,7 +689,7 @@ describe("defineConfig", function () {
|
||||
],
|
||||
"name": "Local Notification Provider",
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
"resolve": "@medusajs/medusa/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -717,7 +717,7 @@ describe("defineConfig", function () {
|
||||
"resolve": "@medusajs/medusa/sales-channel",
|
||||
},
|
||||
"stock_location": {
|
||||
"resolve": "@medusajs/medusa/stock-location-next",
|
||||
"resolve": "@medusajs/medusa/stock-location",
|
||||
},
|
||||
"store": {
|
||||
"resolve": "@medusajs/medusa/store",
|
||||
@@ -778,7 +778,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "emailpass",
|
||||
"resolve": "@medusajs/auth-emailpass",
|
||||
"resolve": "@medusajs/medusa/auth-emailpass",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -801,7 +801,7 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "local",
|
||||
"resolve": "@medusajs/file-local-next",
|
||||
"resolve": "@medusajs/medusa/file-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -812,14 +812,14 @@ describe("defineConfig", function () {
|
||||
"providers": [
|
||||
{
|
||||
"id": "manual",
|
||||
"resolve": "@medusajs/fulfillment-manual",
|
||||
"resolve": "@medusajs/medusa/fulfillment-manual",
|
||||
},
|
||||
],
|
||||
},
|
||||
"resolve": "@medusajs/medusa/fulfillment",
|
||||
},
|
||||
"inventory": {
|
||||
"resolve": "@medusajs/medusa/inventory-next",
|
||||
"resolve": "@medusajs/medusa/inventory",
|
||||
},
|
||||
"locking": {
|
||||
"resolve": "@medusajs/medusa/locking",
|
||||
@@ -835,7 +835,7 @@ describe("defineConfig", function () {
|
||||
],
|
||||
"name": "Local Notification Provider",
|
||||
},
|
||||
"resolve": "@medusajs/notification-local",
|
||||
"resolve": "@medusajs/medusa/notification-local",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -863,7 +863,7 @@ describe("defineConfig", function () {
|
||||
"resolve": "@medusajs/medusa/sales-channel",
|
||||
},
|
||||
"stock_location": {
|
||||
"resolve": "@medusajs/medusa/stock-location-next",
|
||||
"resolve": "@medusajs/medusa/stock-location",
|
||||
},
|
||||
"store": {
|
||||
"resolve": "@medusajs/medusa/store",
|
||||
|
||||
@@ -154,7 +154,7 @@ function resolveModules(
|
||||
options: {
|
||||
providers: [
|
||||
{
|
||||
resolve: "@medusajs/auth-emailpass",
|
||||
resolve: "@medusajs/medusa/auth-emailpass",
|
||||
id: "emailpass",
|
||||
},
|
||||
],
|
||||
@@ -171,7 +171,7 @@ function resolveModules(
|
||||
options: {
|
||||
providers: [
|
||||
{
|
||||
resolve: "@medusajs/file-local-next",
|
||||
resolve: "@medusajs/medusa/file-local",
|
||||
id: "local",
|
||||
},
|
||||
],
|
||||
@@ -182,7 +182,7 @@ function resolveModules(
|
||||
options: {
|
||||
providers: [
|
||||
{
|
||||
resolve: "@medusajs/fulfillment-manual",
|
||||
resolve: "@medusajs/medusa/fulfillment-manual",
|
||||
id: "manual",
|
||||
},
|
||||
],
|
||||
@@ -193,7 +193,7 @@ function resolveModules(
|
||||
options: {
|
||||
providers: [
|
||||
{
|
||||
resolve: "@medusajs/notification-local",
|
||||
resolve: "@medusajs/medusa/notification-local",
|
||||
id: "local",
|
||||
options: {
|
||||
name: "Local Notification Provider",
|
||||
|
||||
@@ -33,7 +33,7 @@ export const MODULE_PACKAGE_NAMES = {
|
||||
[Modules.CART]: "@medusajs/medusa/cart",
|
||||
[Modules.CUSTOMER]: "@medusajs/medusa/customer",
|
||||
[Modules.EVENT_BUS]: "@medusajs/medusa/event-bus-local",
|
||||
[Modules.INVENTORY]: "@medusajs/medusa/inventory-next", // TODO: To be replaced when current `@medusajs/inventory` is deprecated
|
||||
[Modules.INVENTORY]: "@medusajs/medusa/inventory",
|
||||
[Modules.LINK]: "@medusajs/medusa/link-modules",
|
||||
[Modules.PAYMENT]: "@medusajs/medusa/payment",
|
||||
[Modules.PRICING]: "@medusajs/medusa/pricing",
|
||||
@@ -41,7 +41,7 @@ export const MODULE_PACKAGE_NAMES = {
|
||||
[Modules.PROMOTION]: "@medusajs/medusa/promotion",
|
||||
[Modules.SALES_CHANNEL]: "@medusajs/medusa/sales-channel",
|
||||
[Modules.FULFILLMENT]: "@medusajs/medusa/fulfillment",
|
||||
[Modules.STOCK_LOCATION]: "@medusajs/medusa/stock-location-next", // TODO: To be replaced when current `@medusajs/stock-location` is deprecated
|
||||
[Modules.STOCK_LOCATION]: "@medusajs/medusa/stock-location",
|
||||
[Modules.TAX]: "@medusajs/medusa/tax",
|
||||
[Modules.USER]: "@medusajs/medusa/user",
|
||||
[Modules.WORKFLOW_ENGINE]: "@medusajs/medusa/workflow-engine-inmemory",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "medusa-telemetry",
|
||||
"name": "@medusajs/telemetry",
|
||||
"version": "0.0.17",
|
||||
"description": "Telemetry for Medusa",
|
||||
"main": "dist/index.js",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "medusa-test-utils",
|
||||
"name": "@medusajs/test-utils",
|
||||
"version": "1.1.44",
|
||||
"description": "Test utils for Medusa",
|
||||
"main": "dist/index.js",
|
||||
|
||||
@@ -76,12 +76,12 @@
|
||||
"@medusajs/event-bus-local": "^1.9.8",
|
||||
"@medusajs/event-bus-redis": "^1.8.13",
|
||||
"@medusajs/file": "^0.0.1",
|
||||
"@medusajs/file-local-next": "^0.0.2",
|
||||
"@medusajs/file-local": "^0.0.2",
|
||||
"@medusajs/file-s3": "^0.0.2",
|
||||
"@medusajs/fulfillment": "^0.1.2",
|
||||
"@medusajs/fulfillment-manual": "^0.0.2",
|
||||
"@medusajs/index": "^0.0.1",
|
||||
"@medusajs/inventory-next": "^0.0.3",
|
||||
"@medusajs/inventory": "^0.0.3",
|
||||
"@medusajs/link-modules": "^0.2.11",
|
||||
"@medusajs/locking": "^0.0.1",
|
||||
"@medusajs/locking-redis": "^0.0.1",
|
||||
@@ -96,9 +96,10 @@
|
||||
"@medusajs/promotion": "^0.0.4",
|
||||
"@medusajs/region": "^0.1.1",
|
||||
"@medusajs/sales-channel": "^0.1.1",
|
||||
"@medusajs/stock-location-next": "^0.0.3",
|
||||
"@medusajs/stock-location": "^0.0.3",
|
||||
"@medusajs/store": "^0.1.1",
|
||||
"@medusajs/tax": "^0.1.1",
|
||||
"@medusajs/telemetry": "^0.0.17",
|
||||
"@medusajs/user": "^0.0.3",
|
||||
"@medusajs/workflow-engine-inmemory": "^0.0.4",
|
||||
"@medusajs/workflow-engine-redis": "^0.0.4",
|
||||
@@ -113,7 +114,6 @@
|
||||
"fs-exists-cached": "^1.0.0",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"lodash": "^4.17.21",
|
||||
"medusa-telemetry": "^0.0.17",
|
||||
"multer": "^1.4.5-lts.1",
|
||||
"node-schedule": "^2.1.1",
|
||||
"qs": "^6.11.2",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import boxen from "boxen"
|
||||
import { ChildProcess, execSync, fork } from "child_process"
|
||||
import chokidar, { FSWatcher } from "chokidar"
|
||||
import { Store } from "medusa-telemetry"
|
||||
import { Store } from "@medusajs/telemetry"
|
||||
import { EOL } from "os"
|
||||
import path from "path"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import path from "path"
|
||||
import http from "http"
|
||||
import express from "express"
|
||||
import cluster from "cluster"
|
||||
import { track } from "medusa-telemetry"
|
||||
import { track } from "@medusajs/telemetry"
|
||||
import { scheduleJob } from "node-schedule"
|
||||
|
||||
import {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { logger } from "@medusajs/framework/logger"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import express from "express"
|
||||
import { track } from "medusa-telemetry"
|
||||
import { track } from "@medusajs/telemetry"
|
||||
import loaders from "../loaders"
|
||||
|
||||
export default async function ({
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import LocalFileProvider from "@medusajs/file-local-next"
|
||||
|
||||
export * from "@medusajs/file-local-next"
|
||||
|
||||
export default LocalFileProvider
|
||||
export const discoveryPath = require.resolve("@medusajs/file-local-next")
|
||||
@@ -0,0 +1,6 @@
|
||||
import LocalFileProvider from "@medusajs/file-local"
|
||||
|
||||
export * from "@medusajs/file-local"
|
||||
|
||||
export default LocalFileProvider
|
||||
export const discoveryPath = require.resolve("@medusajs/file-local")
|
||||
@@ -1,6 +0,0 @@
|
||||
import InventoryModule from "@medusajs/inventory-next"
|
||||
|
||||
export * from "@medusajs/inventory-next"
|
||||
|
||||
export default InventoryModule
|
||||
export const discoveryPath = require.resolve("@medusajs/inventory-next")
|
||||
@@ -0,0 +1,6 @@
|
||||
import InventoryModule from "@medusajs/inventory"
|
||||
|
||||
export * from "@medusajs/inventory"
|
||||
|
||||
export default InventoryModule
|
||||
export const discoveryPath = require.resolve("@medusajs/inventory")
|
||||
@@ -1,6 +0,0 @@
|
||||
import StockLocationModule from "@medusajs/stock-location-next"
|
||||
|
||||
export * from "@medusajs/stock-location-next"
|
||||
|
||||
export default StockLocationModule
|
||||
export const discoveryPath = require.resolve("@medusajs/stock-location-next")
|
||||
@@ -0,0 +1,6 @@
|
||||
import StockLocationModule from "@medusajs/stock-location"
|
||||
|
||||
export * from "@medusajs/stock-location"
|
||||
|
||||
export default StockLocationModule
|
||||
export const discoveryPath = require.resolve("@medusajs/stock-location")
|
||||
@@ -2,7 +2,7 @@ import { IApiKeyModuleService } from "@medusajs/framework/types"
|
||||
import { ApiKeyType, Module, Modules } from "@medusajs/framework/utils"
|
||||
import { ApiKeyModuleService } from "@services"
|
||||
import crypto from "crypto"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import {
|
||||
createPublishableKeyFixture,
|
||||
createSecretKeyFixture,
|
||||
|
||||
@@ -38,11 +38,11 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { IAuthModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { createAuthIdentities } from "../../__fixtures__/auth-identity"
|
||||
|
||||
jest.setTimeout(30000)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { IAuthModuleService } from "@medusajs/framework/types"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import { AuthModuleService } from "@services"
|
||||
import { moduleIntegrationTestRunner, SuiteOptions } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner, SuiteOptions } from "@medusajs/test-utils"
|
||||
import { resolve } from "path"
|
||||
|
||||
let moduleOptions = {
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -45,7 +46,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.42",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import { ICartModuleService } from "@medusajs/framework/types"
|
||||
import { BigNumber, Module, Modules } from "@medusajs/framework/utils"
|
||||
import { CheckConstraintViolationException } from "@mikro-orm/core"
|
||||
import { CartModuleService } from "@services"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(50000)
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -44,7 +45,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { ICurrencyModuleService } from "@medusajs/framework/types"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import { CurrencyModuleService } from "@services"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -45,7 +46,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { ICustomerModuleService } from "@medusajs/framework/types"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import { CustomerModuleService } from "@services"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(30000)
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -45,7 +46,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { resolve } from "path"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { IFileModuleService } from "@medusajs/framework/types"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import { FileModuleService } from "@services"
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -45,7 +46,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.43",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import {
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { buildExpectedEventMessageShape } from "../../__fixtures__"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import {
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import {
|
||||
buildExpectedEventMessageShape,
|
||||
generateCreateFulfillmentData,
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import {
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { buildExpectedEventMessageShape } from "../../__fixtures__"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import {
|
||||
initModules,
|
||||
moduleIntegrationTestRunner,
|
||||
SuiteOptions,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { resolve } from "path"
|
||||
import { createFullDataStructure } from "../../__fixtures__"
|
||||
import { FulfillmentProviderServiceFixtures } from "../../__fixtures__/providers"
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import {
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { buildExpectedEventMessageShape } from "../../__fixtures__"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import { FulfillmentProviderService } from "@services"
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { resolve } from "path"
|
||||
import {
|
||||
buildExpectedEventMessageShape,
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import {
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import {
|
||||
buildExpectedEventMessageShape,
|
||||
generateCreateShippingOptionsData,
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -45,7 +46,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
import { EntityManager } from "@mikro-orm/postgresql"
|
||||
import { IndexData, IndexRelation } from "@models"
|
||||
import { asValue } from "awilix"
|
||||
import { initDb, TestDatabaseUtils } from "medusa-test-utils"
|
||||
import { initDb, TestDatabaseUtils } from "@medusajs/test-utils"
|
||||
import * as path from "path"
|
||||
import { EventBusServiceMock } from "../__fixtures__"
|
||||
import { dbName } from "../__fixtures__/medusa-config"
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
import { EntityManager } from "@mikro-orm/postgresql"
|
||||
import { IndexData, IndexRelation } from "@models"
|
||||
import { asValue } from "awilix"
|
||||
import { initDb, TestDatabaseUtils } from "medusa-test-utils"
|
||||
import { initDb, TestDatabaseUtils } from "@medusajs/test-utils"
|
||||
import path from "path"
|
||||
import { EventBusServiceMock } from "../__fixtures__"
|
||||
import { dbName } from "../__fixtures__/medusa-config"
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/knex": "5.9.7",
|
||||
@@ -46,7 +47,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { IInventoryService, InventoryItemDTO } from "@medusajs/framework/types"
|
||||
import { BigNumber, Module, Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { InventoryModuleService } from "../../src/services"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@medusajs/inventory-next",
|
||||
"name": "@medusajs/inventory",
|
||||
"version": "0.0.3",
|
||||
"description": "Inventory Module for Medusa",
|
||||
"main": "dist/index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/medusajs/medusa",
|
||||
"directory": "packages/inventory-next"
|
||||
"directory": "packages/inventory"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@@ -24,6 +24,7 @@
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -31,7 +32,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.43",
|
||||
"rimraf": "^5.0.1",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
@@ -1,7 +1,7 @@
|
||||
import { MedusaModule } from "@medusajs/framework/modules-sdk"
|
||||
import { ILinkModule, ModuleJoinerConfig } from "@medusajs/framework/types"
|
||||
import { defineLink, isObject, Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { MigrationsExecutionPlanner } from "../../src"
|
||||
import {
|
||||
Car,
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
"@mikro-orm/postgresql": "5.9.7",
|
||||
@@ -41,7 +42,6 @@
|
||||
"@swc/jest": "^0.2.36",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^5.0.1",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ILockingModule } from "@medusajs/framework/types"
|
||||
import { Modules, promiseAll } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { setTimeout } from "node:timers/promises"
|
||||
|
||||
jest.setTimeout(10000)
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -41,7 +42,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import { NotificationModuleService } from "@services"
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { resolve } from "path"
|
||||
|
||||
let moduleOptions = {
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -45,7 +46,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import { OrderModuleService } from "@services"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
moduleIntegrationTestRunner<IOrderModuleService>({
|
||||
moduleName: Modules.ORDER,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { ClaimType, Modules } from "@medusajs/framework/utils"
|
||||
import { SuiteOptions, moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { SuiteOptions, moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
IOrderModuleService,
|
||||
} from "@medusajs/framework/types"
|
||||
import { BigNumber, ChangeActionType, Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { SuiteOptions, moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { SuiteOptions, moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
IOrderModuleService,
|
||||
} from "@medusajs/framework/types"
|
||||
import { Modules, OrderStatus } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(1000000)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -45,7 +46,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IPaymentModuleService } from "@medusajs/framework/types"
|
||||
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
|
||||
jest.setTimeout(30000)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { IPaymentModuleService } from "@medusajs/framework/types"
|
||||
import { Module, Modules, promiseAll } from "@medusajs/framework/utils"
|
||||
import { PaymentModuleService } from "@services"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import {
|
||||
createPaymentCollections,
|
||||
createPayments,
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -45,7 +46,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import {
|
||||
PriceListStatus,
|
||||
PriceListType,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { seedPriceData } from "../../../__fixtures__/seed-price-data"
|
||||
|
||||
jest.setTimeout(30000)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { IPricingModuleService } from "@medusajs/framework/types"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import { PricingModuleService } from "@services"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
|
||||
moduleIntegrationTestRunner<IPricingModuleService>({
|
||||
moduleName: Modules.PRICING,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { IPricingModuleService } from "@medusajs/framework/types"
|
||||
import { SqlEntityManager } from "@mikro-orm/postgresql"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { createPriceLists } from "../../../__fixtures__/price-list"
|
||||
import { createPriceListRules } from "../../../__fixtures__/price-list-rules"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import {
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { createPriceLists } from "../../../__fixtures__/price-list"
|
||||
import { createPriceSets } from "../../../__fixtures__/price-set"
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { IPricingModuleService } from "@medusajs/framework/types"
|
||||
import { SqlEntityManager } from "@mikro-orm/postgresql"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import { Price } from "../../../../src/models"
|
||||
import { createPrices } from "../../../__fixtures__/price"
|
||||
import { createPriceRules } from "../../../__fixtures__/price-rule"
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import {
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { seedPriceData } from "../../../__fixtures__/seed-price-data"
|
||||
|
||||
jest.setTimeout(30000)
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/test-utils": "^1.1.44",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
@@ -45,7 +46,6 @@
|
||||
"@swc/core": "^1.7.28",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
"rimraf": "^3.0.2",
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ProductCategoryService } from "@services"
|
||||
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { moduleIntegrationTestRunner } from "@medusajs/test-utils"
|
||||
import {
|
||||
eletronicsCategoriesData,
|
||||
productCategoriesData,
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import { Product, ProductCategory } from "@models"
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { productCategoriesRankData } from "../../__fixtures__/product-category/data"
|
||||
|
||||
jest.setTimeout(30000)
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import { Product, ProductCollection } from "@models"
|
||||
import {
|
||||
MockEventBusService,
|
||||
moduleIntegrationTestRunner,
|
||||
} from "medusa-test-utils"
|
||||
} from "@medusajs/test-utils"
|
||||
import { createCollections } from "../../__fixtures__/product"
|
||||
|
||||
jest.setTimeout(30000)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user