@partygame.show/demo
Advanced tools
Comparing version
{ | ||
"name": "@partygame.show/demo", | ||
"version": "1.0.0-alpha.8", | ||
"version": "1.0.0-alpha.9", | ||
"description": "Package to load and test games built for the PartyGame.Show framework", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -43,4 +43,2 @@ #!/usr/bin/env node | ||
const gametype = config.gametype; | ||
const gameHostLogicFile = path.resolve(GAME_ROOT, config.build.host); | ||
const gamePlayerLogicFile = path.resolve(GAME_ROOT, config.build.player); | ||
const port = parseInt(program.port, 10); | ||
@@ -64,3 +62,3 @@ | ||
} else if (filepath.startsWith("games")) { | ||
filepath = filepath.replace(`games/${gametype}/`, "").replace(`games\\${gametype}\\`, ""); | ||
filepath = filepath.replace(`games/${gametype}`, config.build.dir).replace(`games\\${gametype}`, config.build.dir); | ||
isGameLocal = true; | ||
@@ -84,7 +82,3 @@ } else if (filepath.startsWith("node_modules")) { | ||
headers["Content-type"] = "text/html"; | ||
data = handlebars.compile(data.toString())({ | ||
gametype, | ||
gameHostLogicFile, | ||
gamePlayerLogicFile, | ||
}); | ||
data = handlebars.compile(data.toString())({ gametype }); | ||
} | ||
@@ -91,0 +85,0 @@ } |
66782
-0.29%1391
-0.43%