main
| 1 | #!/usr/bin/env node |
| 2 | |
| 3 | try { |
| 4 | require("ts-node").register({}) |
| 5 | require("tsconfig-paths").register({}) |
| 6 | } 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") |