hytopia 0.12.0-prerelease-4 → 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.
- package/bin/scripts.js +7 -2
- package/package.json +2 -1
- package/server.mjs +162 -168
package/bin/scripts.js
CHANGED
|
@@ -373,7 +373,12 @@ async function packageProject() {
|
|
|
373
373
|
|
|
374
374
|
logDivider();
|
|
375
375
|
|
|
376
|
-
const
|
|
376
|
+
const entryFile = path.join(sourceDir, 'index.mjs');
|
|
377
|
+
const child = spawn(process.execPath, [entryFile], {
|
|
378
|
+
stdio: 'pipe',
|
|
379
|
+
shell: false,
|
|
380
|
+
cwd: sourceDir,
|
|
381
|
+
});
|
|
377
382
|
|
|
378
383
|
await new Promise(resolve => {
|
|
379
384
|
child.stdout.on('data', data => {
|
|
@@ -461,7 +466,7 @@ async function packageProject() {
|
|
|
461
466
|
async function build(devMode = false) {
|
|
462
467
|
let envFlags = devMode ? '' : '--minify --sourcemap=inline';
|
|
463
468
|
|
|
464
|
-
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' });
|
|
465
470
|
}
|
|
466
471
|
|
|
467
472
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hytopia",
|
|
3
|
-
"version": "0.12.0-prerelease-
|
|
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",
|