hytopia 0.1.61 → 0.1.63
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 +6 -3
- package/examples/big-world/package.json +3 -2
- package/examples/block-entity/package.json +3 -2
- package/examples/custom-ui/package.json +3 -2
- package/examples/entity-controller/package.json +3 -2
- package/examples/entity-spawn/package.json +3 -2
- package/examples/payload-game/package.json +3 -2
- package/examples/wall-dodge-game/package.json +3 -2
- package/package.json +1 -1
package/bin/scripts.js
CHANGED
@@ -27,13 +27,14 @@ const path = require('path');
|
|
27
27
|
if (command === 'init') {
|
28
28
|
const destDir = process.cwd();
|
29
29
|
|
30
|
-
//
|
31
|
-
console.log('🔧 Initializing project with latest HYTOPIA SDK...');
|
32
|
-
|
30
|
+
// Grab the latest dependencies
|
33
31
|
execSync('bun init --yes');
|
34
32
|
execSync('bun add hytopia@latest');
|
35
33
|
execSync('bun add @hytopia.com/assets');
|
36
34
|
|
35
|
+
// Initialize project with latest HYTOPIA SDK
|
36
|
+
console.log('🔧 Initializing project with latest HYTOPIA SDK...');
|
37
|
+
|
37
38
|
if (flags.template) {
|
38
39
|
// Init from example template
|
39
40
|
console.log(`🖨️ Initializing project with examples template "${flags.template}"...`);
|
@@ -46,6 +47,8 @@ const path = require('path');
|
|
46
47
|
}
|
47
48
|
|
48
49
|
fs.cpSync(templateDir, destDir, { recursive: true });
|
50
|
+
|
51
|
+
execSync('bun install');
|
49
52
|
} else {
|
50
53
|
// Init from boilerplate
|
51
54
|
console.log('🧑💻 Initializing project with boilerplate...');
|