Making sure worker runs through ts-node in cypress, locally, then built in CI.

This commit is contained in:
mike12345567 2022-02-01 16:02:44 +00:00
parent 53aabb4d05
commit b3b982fa8f
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ process.env.LOG_LEVEL = "error"
exports.run = ( exports.run = (
serverLoc = "../../server/dist", serverLoc = "../../server/dist",
workerLoc = "../../worker/src/index" workerLoc = "../../worker/dist"
) => { ) => {
// require("dotenv").config({ path: resolve(dir, ".env") }) // require("dotenv").config({ path: resolve(dir, ".env") })
// don't make this a variable or top level require // don't make this a variable or top level require

View File

@ -1,4 +1,4 @@
// @ts-ignore // @ts-ignore
import { run } from "../setup" import { run } from "../setup"
run("../../server/src/index") run("../../server/src/index", "../../worker/src/index")