feat(cart): Add cart module package (#5982)

* feat: Add CartModule foundation

* remove migration

* fix ts issue

* Create hot-dingos-pay.md
This commit is contained in:
Oli Juhl
2024-01-02 15:59:23 +01:00
committed by GitHub
parent 487067fb48
commit 925feea04a
44 changed files with 679 additions and 3 deletions
@@ -0,0 +1,8 @@
#!/usr/bin/env node
export default (async () => {
const { revertMigration } = await import("../migration-down")
const { config } = await import("dotenv")
config()
await revertMigration()
})()
@@ -0,0 +1,8 @@
#!/usr/bin/env node
export default (async () => {
const { runMigrations } = await import("../migration-up")
const { config } = await import("dotenv")
config()
await runMigrations()
})()
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env node
import { EOL } from "os"
import { run } from "../seed"
const args = process.argv
const path = args.pop() as string
export default (async () => {
const { config } = await import("dotenv")
config()
if (!path) {
throw new Error(
`filePath is required.${EOL}Example: medusa-cart-seed <filePath>`
)
}
await run({ path })
})()