@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 CHANGED
@@ -63,7 +63,8 @@ my-app/
63
63
  │       └── hello.js
64
64
 
65
65
  ├── titan/
66
- │   └── titan.js
66
+ │   |── titan.js
67
+ | |__ bundle.js
67
68
 
68
69
  ├── cli/
69
70
  │   └── bundle.js
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(), "cli", "bundle.js");
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
- "titan-server.exe"
156
+ binaryName
151
157
  );
152
- execSync(`"${exe}"`, { stdio: "inherit" });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezetgalaxy/titan",
3
- "version": "25.11.2",
3
+ "version": "25.11.3",
4
4
  "description": "JavaScript backend framework that compiles your JS into a Rust + Axum server.",
5
5
  "license": "ISC",
6
6
  "author": "ezetgalaxy",
File without changes