feat(user): Init user module (#6293)

* init user module

* add migration

* update module with latest utils

* pr ready

* make interface types interfaces
This commit is contained in:
Philip Korsholm
2024-02-06 11:10:54 +08:00
committed by GitHub
parent 823b98aaa1
commit b2eaac8cb1
43 changed files with 1008 additions and 29 deletions

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-user-seed <filePath>`
)
}
await run({ path })
})()