@dolphjs/cli 1.1.1 → 1.1.3

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.
@@ -77,6 +77,9 @@ export const startProdApp = () => {
77
77
  });
78
78
  }
79
79
  indexFilePath = join(getRootDirectory(), "app", `server.js`);
80
+ if (fileExtension === "js") {
81
+ indexFilePath = join(getRootDirectory(), "src", `server.js`);
82
+ }
80
83
  console.log(`${chalk.bold(chalk.green("[DOLPH INFO]: "))} ${chalk.greenBright("starting dolph server ...")}`);
81
84
  const child2 = spawn("node", [indexFilePath], {
82
85
  stdio: "inherit",
@@ -105,7 +108,7 @@ export const watchFile = () => {
105
108
  fileExtension = readConfig().language;
106
109
  const srcDirectory = join(getRootDirectory(), "src");
107
110
  watcher.add(srcDirectory);
108
- watcher.on("", (_event, path) => {
111
+ watcher.on("all", (_event, path) => {
109
112
  `${chalk.bold(chalk.green("[DOLPH INFO]: "))} ${chalk.greenBright("file changed" + `[${path}]`)}`;
110
113
  if (path.endsWith(".ts") || path.endsWith(".js")) {
111
114
  startApp();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolphjs/cli",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
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",