We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0307304 commit f7bb8b1Copy full SHA for f7bb8b1
packages/cli/medusa-cli/cli.js
@@ -3,6 +3,14 @@
3
try {
4
require("ts-node").register({})
5
require("tsconfig-paths").register({})
6
-} catch {}
+} catch (e) {
7
+ const isProduction = process.env.NODE_ENV === "production"
8
+ if (!isProduction) {
9
+ console.warn(
10
+ "ts-node cannot be loaded and used, if you are running in production don't forget to set your NODE_ENV to production"
11
+ )
12
+ console.warn(e)
13
+ }
14
+}
15
require("dotenv").config()
16
require("./dist/index.js")
0 commit comments