@playcademy/vite-plugin 0.1.14 → 0.1.15
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/dist/index.js +7 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -124995,7 +124995,7 @@ var logger = (fn = console.log) => {
|
|
|
124995
124995
|
};
|
|
124996
124996
|
var package_default = {
|
|
124997
124997
|
name: "@playcademy/sandbox",
|
|
124998
|
-
version: "0.1.
|
|
124998
|
+
version: "0.1.6",
|
|
124999
124999
|
description: "Local development server for Playcademy game development",
|
|
125000
125000
|
type: "module",
|
|
125001
125001
|
exports: {
|
|
@@ -169655,9 +169655,12 @@ async function isPortAvailableOnHost(port, host) {
|
|
|
169655
169655
|
});
|
|
169656
169656
|
}
|
|
169657
169657
|
async function findAvailablePort(startPort = 4321) {
|
|
169658
|
-
const ipv4AllAvailable = await
|
|
169659
|
-
|
|
169660
|
-
|
|
169658
|
+
const [localhostAvailable, ipv4AllAvailable, ipv6AllAvailable] = await Promise.all([
|
|
169659
|
+
isPortAvailableOnHost(startPort, "127.0.0.1"),
|
|
169660
|
+
isPortAvailableOnHost(startPort, "0.0.0.0"),
|
|
169661
|
+
isPortAvailableOnHost(startPort, "::")
|
|
169662
|
+
]);
|
|
169663
|
+
if (localhostAvailable && ipv4AllAvailable && ipv6AllAvailable) {
|
|
169661
169664
|
return startPort;
|
|
169662
169665
|
}
|
|
169663
169666
|
return findAvailablePort(startPort + 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcademy/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"archiver": "^7.0.1",
|
|
27
27
|
"picocolors": "^1.1.1",
|
|
28
|
-
"playcademy": "0.13.
|
|
28
|
+
"playcademy": "0.13.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@inquirer/prompts": "^7.8.6",
|
|
32
|
-
"@playcademy/sandbox": "0.1.
|
|
32
|
+
"@playcademy/sandbox": "0.1.6",
|
|
33
33
|
"@types/archiver": "^6.0.3",
|
|
34
34
|
"@types/bun": "latest",
|
|
35
35
|
"yocto-spinner": "^0.2.2"
|