appstage 0.2.28 → 0.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +5 -2
- package/dist/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
- package/src/scripts/build.ts +8 -4
package/dist/bin.js
CHANGED
|
@@ -690,9 +690,9 @@ async function build(params) {
|
|
|
690
690
|
let serverProcess = null;
|
|
691
691
|
let inited = false;
|
|
692
692
|
let nodeArgs = [`${params.serverDir}/server/index.js`];
|
|
693
|
+
let envFiles = null;
|
|
693
694
|
if (params.useEnvFiles !== false) {
|
|
694
|
-
|
|
695
|
-
for (let envFile of envFiles) log(`Using ${envFile}`);
|
|
695
|
+
envFiles = await getEnvFiles();
|
|
696
696
|
nodeArgs.unshift(...envFiles.map((file) => `--env-file=${file}`));
|
|
697
697
|
}
|
|
698
698
|
function handleServerRebuild() {
|
|
@@ -702,6 +702,9 @@ async function build(params) {
|
|
|
702
702
|
}
|
|
703
703
|
if (!inited) {
|
|
704
704
|
log(`Build completed +${(0, import_dateshape.formatDuration)(Date.now() - startTime)}`);
|
|
705
|
+
if (envFiles) {
|
|
706
|
+
for (let envFile of envFiles) log(`Using ${envFile}`);
|
|
707
|
+
}
|
|
705
708
|
inited = true;
|
|
706
709
|
}
|
|
707
710
|
if (params.start)
|
package/dist/index.cjs
CHANGED
|
@@ -612,9 +612,9 @@ async function build(params) {
|
|
|
612
612
|
let serverProcess = null;
|
|
613
613
|
let inited = false;
|
|
614
614
|
let nodeArgs = [`${params.serverDir}/server/index.js`];
|
|
615
|
+
let envFiles = null;
|
|
615
616
|
if (params.useEnvFiles !== false) {
|
|
616
|
-
|
|
617
|
-
for (let envFile of envFiles) log(`Using ${envFile}`);
|
|
617
|
+
envFiles = await getEnvFiles();
|
|
618
618
|
nodeArgs.unshift(...envFiles.map((file) => `--env-file=${file}`));
|
|
619
619
|
}
|
|
620
620
|
function handleServerRebuild() {
|
|
@@ -624,6 +624,7 @@ async function build(params) {
|
|
|
624
624
|
}
|
|
625
625
|
if (!inited) {
|
|
626
626
|
log(`Build completed +${(0, dateshape.formatDuration)(Date.now() - startTime)}`);
|
|
627
|
+
if (envFiles) for (let envFile of envFiles) log(`Using ${envFile}`);
|
|
627
628
|
inited = true;
|
|
628
629
|
}
|
|
629
630
|
if (params.start) serverProcess = (0, node_child_process.spawn)("node", nodeArgs, { stdio: "inherit" });
|
package/dist/index.mjs
CHANGED
|
@@ -586,9 +586,9 @@ async function build(params) {
|
|
|
586
586
|
let serverProcess = null;
|
|
587
587
|
let inited = false;
|
|
588
588
|
let nodeArgs = [`${params.serverDir}/server/index.js`];
|
|
589
|
+
let envFiles = null;
|
|
589
590
|
if (params.useEnvFiles !== false) {
|
|
590
|
-
|
|
591
|
-
for (let envFile of envFiles) log(`Using ${envFile}`);
|
|
591
|
+
envFiles = await getEnvFiles();
|
|
592
592
|
nodeArgs.unshift(...envFiles.map((file) => `--env-file=${file}`));
|
|
593
593
|
}
|
|
594
594
|
function handleServerRebuild() {
|
|
@@ -598,6 +598,7 @@ async function build(params) {
|
|
|
598
598
|
}
|
|
599
599
|
if (!inited) {
|
|
600
600
|
log(`Build completed +${formatDuration(Date.now() - startTime)}`);
|
|
601
|
+
if (envFiles) for (let envFile of envFiles) log(`Using ${envFile}`);
|
|
601
602
|
inited = true;
|
|
602
603
|
}
|
|
603
604
|
if (params.start) serverProcess = spawn("node", nodeArgs, { stdio: "inherit" });
|
package/package.json
CHANGED
package/src/scripts/build.ts
CHANGED
|
@@ -38,13 +38,12 @@ export async function build(params: BuildParams) {
|
|
|
38
38
|
|
|
39
39
|
let serverProcess: ChildProcess | null = null;
|
|
40
40
|
let inited = false;
|
|
41
|
+
|
|
41
42
|
let nodeArgs = [`${params.serverDir}/server/index.js`];
|
|
43
|
+
let envFiles: string[] | null = null;
|
|
42
44
|
|
|
43
45
|
if (params.useEnvFiles !== false) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
for (let envFile of envFiles) log(`Using ${envFile}`);
|
|
47
|
-
|
|
46
|
+
envFiles = await getEnvFiles();
|
|
48
47
|
nodeArgs.unshift(...envFiles.map((file) => `--env-file=${file}`));
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -56,6 +55,11 @@ export async function build(params: BuildParams) {
|
|
|
56
55
|
|
|
57
56
|
if (!inited) {
|
|
58
57
|
log(`Build completed +${formatDuration(Date.now() - startTime)}`);
|
|
58
|
+
|
|
59
|
+
if (envFiles) {
|
|
60
|
+
for (let envFile of envFiles) log(`Using ${envFile}`);
|
|
61
|
+
}
|
|
62
|
+
|
|
59
63
|
inited = true;
|
|
60
64
|
}
|
|
61
65
|
|