hytopia 0.10.32 → 0.10.34
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 +3 -3
- package/package.json +1 -1
- package/server.mjs +3 -3
package/bin/scripts.js
CHANGED
|
@@ -75,13 +75,13 @@ async function start() {
|
|
|
75
75
|
const projectRoot = process.cwd();
|
|
76
76
|
const entryFile = path.join(projectRoot, 'index.mjs');
|
|
77
77
|
const buildCmd = 'hytopia build-dev';
|
|
78
|
-
const runCmd = `"${process.execPath}"
|
|
78
|
+
const runCmd = `"${process.execPath}" "${entryFile}"`;
|
|
79
79
|
|
|
80
80
|
// Start nodemon to watch for changes, rebuild, then run the server
|
|
81
81
|
nodemon({
|
|
82
82
|
watch: ['.'],
|
|
83
83
|
ext: 'js,ts,html',
|
|
84
|
-
ignore: ['node_modules/**', '.git/**', '*.zip', 'index.mjs'],
|
|
84
|
+
ignore: ['node_modules/**', '.git/**', '*.zip', 'index.mjs', 'assets/**'],
|
|
85
85
|
exec: `${buildCmd} && ${runCmd}`,
|
|
86
86
|
delay: 100,
|
|
87
87
|
})
|
|
@@ -386,7 +386,7 @@ async function packageProject() {
|
|
|
386
386
|
|
|
387
387
|
logDivider();
|
|
388
388
|
|
|
389
|
-
const child = spawn(process.execPath, ['
|
|
389
|
+
const child = spawn(process.execPath, ['index.mjs'], { stdio: 'pipe', shell: false });
|
|
390
390
|
|
|
391
391
|
await new Promise(resolve => {
|
|
392
392
|
child.stdout.on('data', data => {
|
package/package.json
CHANGED