chore: dependencies reorg (#8744)
This commit is contained in:
1 parent
7c2cfc132a
commit
afd25846f0
16 files changed
+72
-40
No files matched your search
@@ -57,7 +57,6 @@
|
||||
"pg": "^8.11.3",
|
||||
"pg-god": "^1.0.12",
|
||||
"prompts": "^2.4.2",
|
||||
"resolve-cwd": "^3.0.0",
|
||||
"semver": "^7.3.8",
|
||||
"stack-trace": "^0.0.10",
|
||||
"winston": "^3.8.2",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { sync as existsSync } from "fs-exists-cached"
|
||||
import { setTelemetryEnabled } from "medusa-telemetry"
|
||||
import path from "path"
|
||||
import resolveCwd from "resolve-cwd"
|
||||
|
||||
import { didYouMean } from "./did-you-mean"
|
||||
|
||||
import { toCamelCase } from "@medusajs/utils"
|
||||
import { newStarter } from "./commands/new"
|
||||
import reporter from "./reporter"
|
||||
|
||||
@@ -40,10 +40,9 @@ function buildLocalCommands(cli, isLocalProject) {
|
||||
}
|
||||
|
||||
try {
|
||||
const cmdPath = resolveCwd.silent(
|
||||
`@medusajs/medusa/dist/commands/${command}`
|
||||
)!
|
||||
return require(cmdPath).default
|
||||
const { Commands } = require("@medusajs/medusa")
|
||||
const cmdName = toCamelCase(command)
|
||||
return Commands[cmdName]
|
||||
} catch (err) {
|
||||
if (!process.env.NODE_ENV?.startsWith("prod")) {
|
||||
console.log("--------------- ERROR ---------------------")
|
||||
@@ -249,6 +248,7 @@ function buildLocalCommands(cli, isLocalProject) {
|
||||
handler: handlerP(
|
||||
getCommandHandler(`develop`, (args, cmd) => {
|
||||
process.env.NODE_ENV = process.env.NODE_ENV || `development`
|
||||
|
||||
cmd(args)
|
||||
// Return an empty promise to prevent handlerP from exiting early.
|
||||
// The development server shouldn't ever exit until the user directly
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/modules-sdk": "^1.12.11",
|
||||
"@medusajs/orchestration": "^0.5.7",
|
||||
"@medusajs/utils": "^1.11.9",
|
||||
"@medusajs/workflows-sdk": "^0.1.6",
|
||||
"json-2-csv": "^5.5.4"
|
||||
|
||||
@@ -26,25 +26,38 @@
|
||||
"devDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@medusajs/types": "^1.11.16",
|
||||
"@medusajs/utils": "^1.11.9",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^29.7.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"typescript": "^5.1.6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@medusajs/medusa": ">1.19",
|
||||
"@medusajs/modules-sdk": "^1.12.10",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@medusajs/medusa": "*",
|
||||
"@medusajs/modules-sdk": "*",
|
||||
"@mikro-orm/core": "*",
|
||||
"@mikro-orm/migrations": "*",
|
||||
"@mikro-orm/postgresql": "*",
|
||||
"axios": "^0.28.0",
|
||||
"express": "^4.18.3",
|
||||
"get-port": "^5.1.0",
|
||||
"pg-god": "^1.0.12"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@medusajs/core": {
|
||||
"optional": true
|
||||
},
|
||||
"@medusajs/medusa": {
|
||||
"optional": true
|
||||
},
|
||||
"@medusajs/migrations": {
|
||||
"optional": true
|
||||
},
|
||||
"@medusajs/modules-sdk": {
|
||||
"optional": true
|
||||
},
|
||||
"@medusajs/postgresql": {
|
||||
"optional": true
|
||||
},
|
||||
"axios": {
|
||||
"optional": true
|
||||
},
|
||||
@@ -60,8 +73,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/utils": "^1.11.9",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
"@mikro-orm/postgresql": "5.9.7",
|
||||
"randomatic": "^3.1.1"
|
||||
},
|
||||
"gitHead": "81a7ff73d012fda722f6e9ef0bd9ba0232d37808"
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@medusajs/types": "^1.11.16",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^29.7.0",
|
||||
"rimraf": "^5.0.1",
|
||||
@@ -36,6 +35,7 @@
|
||||
"resolve-cwd": "^3.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@mikro-orm/core": "*",
|
||||
"awilix": "*"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -32,4 +32,5 @@ export function trackInstallation(installation, type) {
|
||||
}
|
||||
}
|
||||
|
||||
export { default as Store } from "./store"
|
||||
export { default as Telemeter } from "./telemeter"
|
||||
@@ -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/dist/store"
|
||||
import { Store } from "medusa-telemetry"
|
||||
import { EOL } from "os"
|
||||
import path from "path"
|
||||
|
||||
@@ -15,10 +15,12 @@ const defaultConfig = {
|
||||
|
||||
export default async function ({ port, directory }) {
|
||||
const args = process.argv
|
||||
|
||||
const argv =
|
||||
process.argv.indexOf("--") !== -1
|
||||
? process.argv.slice(process.argv.indexOf("--") + 1)
|
||||
: []
|
||||
|
||||
args.shift()
|
||||
args.shift()
|
||||
args.shift()
|
||||
@@ -27,6 +29,7 @@ export default async function ({ port, directory }) {
|
||||
* Re-constructing the path to Medusa CLI to execute the
|
||||
* start command.
|
||||
*/
|
||||
|
||||
const cliPath = path.resolve(MEDUSA_CLI_PATH, "..", "..", "cli.js")
|
||||
|
||||
const devServer = {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
export { default as build } from "./build"
|
||||
export { default as develop } from "./develop"
|
||||
export { default as exec } from "./exec"
|
||||
export { default as links } from "./links"
|
||||
export { default as migrate } from "./migrate"
|
||||
export { default as start } from "./start"
|
||||
export { default as startCluster } from "./start-cluster"
|
||||
export { default as user } from "./user"
|
||||
@@ -1,3 +1,4 @@
|
||||
export * as Commands from "./commands"
|
||||
export * from "./types/common"
|
||||
export * from "./types/global"
|
||||
export * from "./types/middlewares"
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/types": "^1.11.16",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^29.7.0",
|
||||
"medusa-test-utils": "^1.1.44",
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
"typescript": "^5.1.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/modules-sdk": "^1.12.9",
|
||||
"@medusajs/modules-sdk": "^1.12.11",
|
||||
"@medusajs/utils": "^1.11.9",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"scrypt-kdf": "^2.0.1",
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"test": "jest --passWithNoTests"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/modules-sdk": "^1.12.3",
|
||||
"@medusajs/modules-sdk": "^1.12.11",
|
||||
"@medusajs/utils": "^1.11.9"
|
||||
}
|
||||
}
|
||||
@@ -33,8 +33,10 @@
|
||||
"test": "jest --passWithNoTests"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/modules-sdk": "^1.12.8",
|
||||
"@medusajs/utils": "^1.11.9",
|
||||
"ulid": "^2.3.0"
|
||||
"@medusajs/modules-sdk": "^1.12.11",
|
||||
"@medusajs/utils": "^1.11.9"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"ulid": "*"
|
||||
}
|
||||
}
|
||||
@@ -33,8 +33,10 @@
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.556.0",
|
||||
"@aws-sdk/s3-request-presigner": "^3.556.0",
|
||||
"@medusajs/utils": "^1.11.9",
|
||||
"ulid": "^2.3.0"
|
||||
"@medusajs/utils": "^1.11.9"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"ulid": "*"
|
||||
},
|
||||
"keywords": [
|
||||
"medusa-plugin",
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
"typescript": "^5.1.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/modules-sdk": "^1.12.9",
|
||||
"@medusajs/modules-sdk": "^1.12.11",
|
||||
"@medusajs/utils": "^1.11.9"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
Reference in new issue
Block a user