@ezetgalaxy/titan 25.11.2 → 25.11.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.
- package/README.md +2 -1
- package/index.js +11 -3
- package/package.json +1 -1
- /package/templates/{cli → titan}/bundle.js +0 -0
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -94,7 +94,7 @@ Next steps:
|
|
|
94
94
|
// RUN BUNDLER
|
|
95
95
|
// ------------------------------------------
|
|
96
96
|
function runBundler() {
|
|
97
|
-
const bundler = path.join(process.cwd(), "
|
|
97
|
+
const bundler = path.join(process.cwd(), "titan", "bundler.js");
|
|
98
98
|
|
|
99
99
|
if (fs.existsSync(bundler)) {
|
|
100
100
|
console.log(cyan("Titan: bundling actions..."));
|
|
@@ -142,17 +142,25 @@ function buildProd() {
|
|
|
142
142
|
// START PRODUCTION
|
|
143
143
|
// ------------------------------------------
|
|
144
144
|
function startProd() {
|
|
145
|
+
const isWindows = process.platform === "win32";
|
|
146
|
+
|
|
147
|
+
const binaryName = isWindows
|
|
148
|
+
? "titan-server.exe"
|
|
149
|
+
: "titan-server"; // Linux / macOS
|
|
150
|
+
|
|
145
151
|
const exe = path.join(
|
|
146
152
|
process.cwd(),
|
|
147
153
|
"server",
|
|
148
154
|
"target",
|
|
149
155
|
"release",
|
|
150
|
-
|
|
156
|
+
binaryName
|
|
151
157
|
);
|
|
152
|
-
|
|
158
|
+
|
|
159
|
+
execSync(`"${exe}"`, { stdio: "inherit", shell: true });
|
|
153
160
|
}
|
|
154
161
|
|
|
155
162
|
|
|
163
|
+
|
|
156
164
|
// ------------------------------------------
|
|
157
165
|
// ROUTER
|
|
158
166
|
// ------------------------------------------
|
package/package.json
CHANGED
|
File without changes
|