@dolphjs/cli 1.1.2 → 1.1.4
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 +4 -1
- package/package.json +1 -1
package/dist/daemon/watcher.js
CHANGED
|
@@ -60,7 +60,7 @@ export const startProdApp = () => {
|
|
|
60
60
|
fileExtension = readConfig().language;
|
|
61
61
|
if (fileExtension === "ts") {
|
|
62
62
|
console.log(`${chalk.bold(chalk.yellow("[DOLPH INFO]: "))} ${chalk.yellowBright("compiling to javascript ...")}`);
|
|
63
|
-
indexFilePath = join(getRootDirectory(), "src", `server
|
|
63
|
+
indexFilePath = join(getRootDirectory(), "src", `server.ts`);
|
|
64
64
|
const spawnArgs = ["src", "-d", "app", "--source-maps", "--copy-files"];
|
|
65
65
|
const child = spawn("swc", spawnArgs, {
|
|
66
66
|
stdio: "inherit",
|
|
@@ -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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolphjs/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
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",
|