hytopia 0.12.0-prerelease-5 → 0.12.0-prerelease-6

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.
Files changed (3) hide show
  1. package/bin/scripts.js +6 -2
  2. package/package.json +2 -1
  3. package/server.mjs +162 -168
package/bin/scripts.js CHANGED
@@ -374,7 +374,11 @@ async function packageProject() {
374
374
  logDivider();
375
375
 
376
376
  const entryFile = path.join(sourceDir, 'index.mjs');
377
- const child = spawn(process.execPath, [entryFile], { stdio: 'pipe', shell: false, cwd: sourceDir });
377
+ const child = spawn(process.execPath, [entryFile], {
378
+ stdio: 'pipe',
379
+ shell: false,
380
+ cwd: sourceDir,
381
+ });
378
382
 
379
383
  await new Promise(resolve => {
380
384
  child.stdout.on('data', data => {
@@ -462,7 +466,7 @@ async function packageProject() {
462
466
  async function build(devMode = false) {
463
467
  let envFlags = devMode ? '' : '--minify --sourcemap=inline';
464
468
 
465
- execSync(`npx --yes bun build --target=node --env=disable --format=esm ${envFlags} --external=@fails-components/webtransport-transport-http3-quiche --outfile=index.mjs index.ts`, { stdio: 'inherit' });
469
+ execSync(`npx --yes bun build --target=node --env=disable --format=esm ${envFlags} --external=@fails-components/webtransport --external=@fails-components/webtransport-transport-http3-quiche --outfile=index.mjs index.ts`, { stdio: 'inherit' });
466
470
  }
467
471
 
468
472
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.12.0-prerelease-5",
3
+ "version": "0.12.0-prerelease-6",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./server.mjs",
@@ -56,6 +56,7 @@
56
56
  },
57
57
  "homepage": "https://github.com/hytopiagg/sdk#readme",
58
58
  "dependencies": {
59
+ "@fails-components/webtransport": "1.4.4",
59
60
  "@fails-components/webtransport-transport-http3-quiche": "1.4.4",
60
61
  "@gltf-transform/cli": "4.2.1",
61
62
  "archiver": "7.0.1",