@akanjs/cli 0.9.20 → 0.9.21
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/cjs/index.js +3 -2
- package/esm/index.js +3 -2
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -3812,11 +3812,12 @@ var Start = ({
|
|
|
3812
3812
|
const [backendLogs, setBackendLogs] = (0, import_react4.useState)([]);
|
|
3813
3813
|
const [frontendLogs, setFrontendLogs] = (0, import_react4.useState)([]);
|
|
3814
3814
|
(0, import_react4.useEffect)(() => {
|
|
3815
|
-
const backend = app.dist.spawnSync("node", ["--watch", "
|
|
3815
|
+
const backend = app.dist.spawnSync("node", ["--watch", "main.js"], {
|
|
3816
3816
|
stdio: ["ignore", "pipe", "pipe"],
|
|
3817
3817
|
// stdin은 무시
|
|
3818
3818
|
env: backendEnv,
|
|
3819
|
-
detached: true
|
|
3819
|
+
detached: true,
|
|
3820
|
+
cwd: `${app.dist.cwdPath}/backend`
|
|
3820
3821
|
});
|
|
3821
3822
|
const frontend = app.spawnSync("npx", ["next", "dev", "-p", "4200"], {
|
|
3822
3823
|
stdio: ["ignore", "pipe", "pipe"],
|
package/esm/index.js
CHANGED
|
@@ -3794,11 +3794,12 @@ var Start = ({
|
|
|
3794
3794
|
const [backendLogs, setBackendLogs] = useState4([]);
|
|
3795
3795
|
const [frontendLogs, setFrontendLogs] = useState4([]);
|
|
3796
3796
|
useEffect4(() => {
|
|
3797
|
-
const backend = app.dist.spawnSync("node", ["--watch", "
|
|
3797
|
+
const backend = app.dist.spawnSync("node", ["--watch", "main.js"], {
|
|
3798
3798
|
stdio: ["ignore", "pipe", "pipe"],
|
|
3799
3799
|
// stdin은 무시
|
|
3800
3800
|
env: backendEnv,
|
|
3801
|
-
detached: true
|
|
3801
|
+
detached: true,
|
|
3802
|
+
cwd: `${app.dist.cwdPath}/backend`
|
|
3802
3803
|
});
|
|
3803
3804
|
const frontend = app.spawnSync("npx", ["next", "dev", "-p", "4200"], {
|
|
3804
3805
|
stdio: ["ignore", "pipe", "pipe"],
|