From 607c5e191b28dcaf50026899a46217720e1f48f0 Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Mon, 19 Jul 2021 15:59:27 +0100 Subject: [PATCH] Ignore public/ directory; always serve repository root By default http-server will serve ./public if it exists. We want it to always serve the repository root, so configure the start script to specify that explicitly, so that the existence of a public/ directory will not break things. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e834b9489..6314e8b44 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "publish:beta": "gulp publishBeta", "recompile": "gulp recompile", "release": "gulp gitCreateRC", - "start": "http-server -o /tests/playground.html", + "start": "http-server ./ -o /tests/playground.html", "test": "tests/run_all_tests.sh", "test:generators": "tests/scripts/run_generators.sh", "test:compile:advanced": "gulp buildAdvancedCompilationTest",