Adds publish/subscribe pattern to allow plugins and projects to hook into events (#55)
Also adds CLI to ease development.
This commit is contained in:
1 parent
6a78df1ecd
commit
4c2aec2838
39 files changed
+6974
-444
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import path from "path"
|
||||
|
||||
export const getMedusaVersion = () => {
|
||||
try {
|
||||
return require(path.join(
|
||||
process.cwd(),
|
||||
`node_modules`,
|
||||
`@medusajs/medusa`,
|
||||
`package.json`
|
||||
)).version
|
||||
} catch (e) {
|
||||
return ``
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user