Remove redundant bin option in the medusa package (#7418)

This commit is contained in:
Harminder Virk
2024-05-23 16:56:54 +05:30
committed by GitHub
parent f3d19f5394
commit 66279f1691
6 changed files with 4 additions and 14 deletions

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env node
require("dotenv").config()
require("./dist/index.js")

View File

@@ -1,3 +0,0 @@
#!/usr/bin/env node
require(`./dist/bin/medusa.js`)

View File

@@ -3,7 +3,6 @@
"version": "1.20.5",
"description": "Building blocks for digital commerce",
"main": "dist/index.js",
"bin": "./cli.js",
"repository": {
"type": "git",
"url": "https://github.com/medusajs/medusa",

View File

@@ -1,3 +0,0 @@
#!/usr/bin/env node
require(`@medusajs/medusa-cli`)

View File

@@ -56,10 +56,10 @@ export default async function ({ port, directory }) {
}
const cliPath = path.resolve(
require.resolve("@medusajs/medusa"),
"../",
"bin",
"medusa.js"
require.resolve("@medusajs/medusa-cli"),
"..",
"..",
"cli.js"
)
let child = fork(cliPath, [`start`, ...args], {
execArgv: argv,

View File

@@ -5677,8 +5677,6 @@ __metadata:
typescript: ^4.4.4
uuid: ^9.0.0
zod: 3.22.4
bin:
medusa: ./cli.js
languageName: unknown
linkType: soft