Fix app build command

This commit is contained in:
hensm
2021-08-31 08:48:09 +01:00
parent 41d8edcab4
commit 498d3f65c9

View File

@@ -84,7 +84,7 @@ const MDNS_BINDING_NAME = "dns_sd_bindings.node";
async function build() { async function build() {
// Run tsc // Run tsc
spawnSync( spawnSync(
`tsc --project ${ROOT_PATH} `tsc --project ${ROOT_PATH} \
--outDir ${BUILD_PATH}`, --outDir ${BUILD_PATH}`,
spawnOptions spawnOptions
); );
@@ -217,12 +217,6 @@ NODE_PATH="${modulesDir}" node $(dirname $0)/src/main.js --__name $(basename $0)
} else { } else {
// Move tsc output and launcher to dist // Move tsc output and launcher to dist
fs.moveSync(BUILD_PATH, paths.DIST_PATH, { overwrite: true }); fs.moveSync(BUILD_PATH, paths.DIST_PATH, { overwrite: true });
/*
spawnSync("npm install --production", {
...spawnOptions
, cwd: paths.DIST_PATH
});
*/
} }
// Remove build directory // Remove build directory