@titanpl/packet 2.0.0 → 2.0.1

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/js/titan/dev.js CHANGED
@@ -25,6 +25,11 @@ function getTitanVersion() {
25
25
  }
26
26
 
27
27
  function getEngineBinaryPath(root) {
28
+ // First: check if the CLI pre-resolved this for us (correct module context)
29
+ if (process.env.TITAN_ENGINE_BINARY && fs.existsSync(process.env.TITAN_ENGINE_BINARY)) {
30
+ return process.env.TITAN_ENGINE_BINARY;
31
+ }
32
+
28
33
  const platform = os.platform();
29
34
  const arch = os.arch();
30
35
  const binName = platform === 'win32' ? 'titan-server.exe' : 'titan-server';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titanpl/packet",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "The bundler for TitanPl servers.",
5
5
  "keywords": [
6
6
  "bundler",
package/ts/titan/dev.js CHANGED
@@ -25,6 +25,11 @@ function getTitanVersion() {
25
25
  }
26
26
 
27
27
  function getEngineBinaryPath(root) {
28
+ // First: check if the CLI pre-resolved this for us (correct module context)
29
+ if (process.env.TITAN_ENGINE_BINARY && fs.existsSync(process.env.TITAN_ENGINE_BINARY)) {
30
+ return process.env.TITAN_ENGINE_BINARY;
31
+ }
32
+
28
33
  const platform = os.platform();
29
34
  const arch = os.arch();
30
35
  const binName = platform === 'win32' ? 'titan-server.exe' : 'titan-server';