Merge branch 'develop' of https://github.com/AntlerVC/firetable into develop

This commit is contained in:
Shams mosowi
2020-09-11 12:43:58 +10:00
2 changed files with 6 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "firetable",
"alias": "firetable-cli",
"version": "1.0.1",
"version": "1.0.2",
"description": "CLI tool to simplify firetable deployment processes",
"repository": "https://github.com/AntlerVC/firetable",
"author": "Shams Mosowi",

View File

@@ -111,7 +111,11 @@ module.exports.deployToFirebaseHosting = (projectId) =>
module.exports.startFiretableLocally = (dir = "firetable/www") =>
new Promise((resolve) => {
const child = spawn("npm", ["run", "serve"], { cwd: dir });
const child = spawn(
/^win/.test(process.platform) ? "npm.cmd" : "npm",
["run", "serve"],
{ cwd: dir }
);
child.stdout.on("data", (data) => {
const msg = data.toString();
const portRegex = /^INFO: Accepting connections at (http:\/\/[\w\.]+:\d+)/;