@michijs/dev-server 0.8.11 → 0.8.13
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.
|
@@ -4,8 +4,7 @@ export function getIPAddress() {
|
|
|
4
4
|
for (const devName in interfaces) {
|
|
5
5
|
const iface = interfaces[devName];
|
|
6
6
|
if (iface)
|
|
7
|
-
for (
|
|
8
|
-
const alias = iface[i];
|
|
7
|
+
for (const alias of iface) {
|
|
9
8
|
if (alias.family === "IPv4" &&
|
|
10
9
|
alias.address !== "127.0.0.1" &&
|
|
11
10
|
!alias.internal)
|
|
@@ -26,7 +26,7 @@ export const cssPlugin = {
|
|
|
26
26
|
},
|
|
27
27
|
define: undefined,
|
|
28
28
|
});
|
|
29
|
-
const processedCss = result.outputFiles?.[0]
|
|
29
|
+
const processedCss = result.outputFiles?.[0]?.text ?? "";
|
|
30
30
|
if (!processedCss.includes("@layer")) {
|
|
31
31
|
const parts = args.path.split(path.sep);
|
|
32
32
|
const nodeModulesIndex = parts.lastIndexOf("node_modules");
|
package/bin/config/userConfig.js
CHANGED
|
@@ -21,8 +21,9 @@ if (fs.existsSync("michi.config.ts")) {
|
|
|
21
21
|
target: ["node16"],
|
|
22
22
|
});
|
|
23
23
|
// @ts-expect-error
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
const imported = await import("./michi.config.cjs");
|
|
25
|
+
const configFactory = imported.default?.default || imported.default || imported; // fallback if Bun unwraps differently
|
|
26
|
+
config = configFactory({
|
|
26
27
|
...defaultProductionConfig,
|
|
27
28
|
environment: process.env.NODE_ENV,
|
|
28
29
|
});
|
|
@@ -5,8 +5,11 @@ export const getCurrentCommitSha = () => {
|
|
|
5
5
|
const headPath = join(".git", "HEAD");
|
|
6
6
|
const headContent = fs.readFileSync(headPath, "utf-8").trim();
|
|
7
7
|
if (headContent.startsWith("ref:")) {
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const ref = headContent.split(" ")?.[1];
|
|
9
|
+
if (ref) {
|
|
10
|
+
const refPath = join(".git", ref);
|
|
11
|
+
return fs.readFileSync(refPath, "utf-8").trim();
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
return headContent;
|
|
12
15
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michijs/dev-server",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.13",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/michijs/dev-server.git"
|
|
@@ -29,11 +29,10 @@
|
|
|
29
29
|
"link": "bunx concurrently bun:dist-w bun:bun-link"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@michijs/shared-configs": "0.0.
|
|
33
|
-
"@
|
|
34
|
-
"@types/
|
|
35
|
-
"
|
|
36
|
-
"typescript": "5.9.2"
|
|
32
|
+
"@michijs/shared-configs": "0.0.33",
|
|
33
|
+
"@types/node": "25.0.3",
|
|
34
|
+
"@types/yargs": "17.0.35",
|
|
35
|
+
"typescript": "5.9.3"
|
|
37
36
|
},
|
|
38
37
|
"keywords": [
|
|
39
38
|
"react",
|
|
@@ -56,11 +55,11 @@
|
|
|
56
55
|
"dependencies": {
|
|
57
56
|
"colorthief": "2.6.0",
|
|
58
57
|
"@types/web-app-manifest": "1.0.9",
|
|
59
|
-
"esbuild": "0.
|
|
58
|
+
"esbuild": "0.27.2",
|
|
60
59
|
"node-watch": "0.7.4",
|
|
61
|
-
"open": "
|
|
62
|
-
"playwright-core": "1.
|
|
63
|
-
"sharp": "0.34.
|
|
60
|
+
"open": "11.0.0",
|
|
61
|
+
"playwright-core": "1.57.0",
|
|
62
|
+
"sharp": "0.34.5",
|
|
64
63
|
"yargs": "18.0.0"
|
|
65
64
|
}
|
|
66
65
|
}
|