@dolphjs/cli 1.0.23 → 1.0.25
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/daemon/watcher.js +8 -3
- package/package.json +1 -3
package/dist/daemon/watcher.js
CHANGED
|
@@ -4,6 +4,11 @@ import chalk from "chalk";
|
|
|
4
4
|
import { getRootDirectory } from "../utils/get_root_dir_path.js";
|
|
5
5
|
import { readConfig } from "../utils/read_user_config_path.js";
|
|
6
6
|
import { join } from "path";
|
|
7
|
+
/**
|
|
8
|
+
* TODO: add child2.on('error', (err) => {
|
|
9
|
+
console.error('Error spawning child process:', err);
|
|
10
|
+
});
|
|
11
|
+
*/
|
|
7
12
|
let fileExtension = "";
|
|
8
13
|
let indexFilePath = "";
|
|
9
14
|
export const startApp = () => {
|
|
@@ -37,15 +42,15 @@ export const startProdApp = () => {
|
|
|
37
42
|
const child = spawn("swc", spawnArgs, {
|
|
38
43
|
stdio: "inherit",
|
|
39
44
|
});
|
|
40
|
-
console.log(chalk.bold(`${chalk.green("[DOLPH INFO]: ")} ${chalk.greenBright("starting dolph server ...")}`));
|
|
41
45
|
child.on("close", (code) => {
|
|
42
46
|
if (code === 1) {
|
|
43
47
|
console.log(chalk.bold(`${chalk.red("[DOLPH ERROR]: ")} ${chalk.redBright("exiting compilation ...")}`));
|
|
44
48
|
process.exit(1);
|
|
45
49
|
}
|
|
46
50
|
});
|
|
47
|
-
indexFilePath = join(getRootDirectory(), "app", `server
|
|
48
|
-
|
|
51
|
+
indexFilePath = join(getRootDirectory(), "app", `server.js`);
|
|
52
|
+
console.log(chalk.bold(`${chalk.green("[DOLPH INFO]: ")} ${chalk.greenBright("starting dolph server ...")}`));
|
|
53
|
+
const child2 = spawn("node", [indexFilePath], {
|
|
49
54
|
stdio: "inherit",
|
|
50
55
|
});
|
|
51
56
|
child2.on("close", (code) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolphjs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "The dolphjs-cli is a tool for efficient intialization and management of a dolphjs project",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"repository": "https://github.com/dolphjs/dolph-cli.git",
|
|
@@ -39,8 +39,6 @@
|
|
|
39
39
|
"dc": "./dist/index.js"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@swc/cli": "^0.1.63",
|
|
43
|
-
"@swc/core": "^1.3.102",
|
|
44
42
|
"chalk": "^5.3.0",
|
|
45
43
|
"chokidar": "^3.5.3",
|
|
46
44
|
"commander": "^11.1.0",
|