@michijs/dev-server 0.8.22 → 0.8.28
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.
|
@@ -17,7 +17,7 @@ export function installPlaywright() {
|
|
|
17
17
|
const runners = ["bunx", "npx"];
|
|
18
18
|
exec(runners
|
|
19
19
|
.map((x) => `${x} ${playwrightVersion} install chromium --with-deps`)
|
|
20
|
-
.join(" || "), (error, stdout
|
|
20
|
+
.join(" || "), (error, stdout) => {
|
|
21
21
|
if (error) {
|
|
22
22
|
console.error(`Error during Playwright installation: ${error.message}`);
|
|
23
23
|
return reject(error);
|
|
@@ -132,13 +132,9 @@ export async function generateAssets(callback, src) {
|
|
|
132
132
|
const fileNameWithoutExtension = basename(src).split(".")[0];
|
|
133
133
|
const tempFileName = getPath(`${generatedPath}/${fileNameWithoutExtension}-temp.png`);
|
|
134
134
|
await image.png().toFile(tempFileName);
|
|
135
|
-
const dominantColor = await getColor(tempFileName
|
|
135
|
+
const dominantColor = await getColor(tempFileName);
|
|
136
136
|
rmSync(tempFileName, { force: true });
|
|
137
|
-
const color =
|
|
138
|
-
r: dominantColor[0],
|
|
139
|
-
g: dominantColor[1],
|
|
140
|
-
b: dominantColor[2],
|
|
141
|
-
};
|
|
137
|
+
const color = dominantColor?.rgb();
|
|
142
138
|
const flattenImage = image.clone().flatten({ background: color });
|
|
143
139
|
await Promise.all([
|
|
144
140
|
...assetsSizes.webp.flatMap((x) => [image, flattenImage].map((y) => y
|
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.28",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/michijs/dev-server.git"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"link": "bun run --parallel dist-w bun-link"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@michijs/shared-configs": "0.0.
|
|
33
|
-
"@types/node": "25.
|
|
32
|
+
"@michijs/shared-configs": "0.0.36",
|
|
33
|
+
"@types/node": "25.5.0",
|
|
34
34
|
"@types/yargs": "17.0.35",
|
|
35
35
|
"typescript": "5.9.3"
|
|
36
36
|
},
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"node": ">=14.16"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@types/chrome": "^0.1.
|
|
57
|
-
"colorthief": "
|
|
56
|
+
"@types/chrome": "^0.1.37",
|
|
57
|
+
"colorthief": "3.3.1",
|
|
58
58
|
"@types/web-app-manifest": "1.0.9",
|
|
59
|
-
"esbuild": "0.27.
|
|
59
|
+
"esbuild": "0.27.4",
|
|
60
60
|
"node-watch": "0.7.4",
|
|
61
61
|
"open": "11.0.0",
|
|
62
|
-
"playwright-core": "1.58.
|
|
62
|
+
"playwright-core": "1.58.2",
|
|
63
63
|
"sharp": "0.34.5",
|
|
64
64
|
"yargs": "18.0.0"
|
|
65
65
|
}
|