@michijs/dev-server 0.7.24 → 0.7.26
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function installPlaywright(): Promise<void>;
|
|
2
2
|
export declare function generateFeatureImage(src: string): Promise<void>;
|
|
3
|
-
export declare function generateScreenshots(): Promise<Buffer[][]>;
|
|
3
|
+
export declare function generateScreenshots(): Promise<Buffer<ArrayBufferLike>[][]>;
|
|
4
4
|
export declare function generateAssets(callback: () => void, src: string): Promise<void>;
|
package/bin/config/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ declare const config: {
|
|
|
27
27
|
esbuildOptions: {
|
|
28
28
|
plugins: import("esbuild").Plugin[];
|
|
29
29
|
define: {
|
|
30
|
-
|
|
31
|
-
};
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
} | undefined;
|
|
32
32
|
inject: string[];
|
|
33
33
|
bundle: boolean;
|
|
34
34
|
splitting: boolean;
|
|
@@ -84,13 +84,13 @@ declare const config: {
|
|
|
84
84
|
mangleCache?: Record<string, string | false>;
|
|
85
85
|
drop?: import("esbuild").Drop[];
|
|
86
86
|
dropLabels?: string[];
|
|
87
|
-
minify
|
|
88
|
-
minifyWhitespace
|
|
87
|
+
minify: boolean;
|
|
88
|
+
minifyWhitespace?: boolean;
|
|
89
89
|
minifyIdentifiers?: boolean;
|
|
90
|
-
minifySyntax
|
|
90
|
+
minifySyntax?: boolean;
|
|
91
91
|
lineLimit?: number;
|
|
92
92
|
charset?: import("esbuild").Charset;
|
|
93
|
-
treeShaking
|
|
93
|
+
treeShaking: boolean;
|
|
94
94
|
ignoreAnnotations?: boolean;
|
|
95
95
|
jsx?: "transform" | "preserve" | "automatic";
|
|
96
96
|
jsxFactory?: string;
|
package/bin/config/config.js
CHANGED
|
@@ -52,10 +52,10 @@ const config = {
|
|
|
52
52
|
esbuildOptions: {
|
|
53
53
|
outdir: "build",
|
|
54
54
|
tsconfig: "tsconfig.json",
|
|
55
|
-
|
|
56
|
-
minifyWhitespace: minify,
|
|
55
|
+
minify,
|
|
57
56
|
sourcemap: process.env.NODE_ENV === "DEVELOPMENT",
|
|
58
57
|
splitting: true,
|
|
58
|
+
treeShaking: true,
|
|
59
59
|
bundle: process.env.NODE_ENV !== "DISTRIBUTION",
|
|
60
60
|
keepNames: minify,
|
|
61
61
|
entryPoints: [defaultEntryPoint],
|
|
@@ -90,21 +90,22 @@ const config = {
|
|
|
90
90
|
publicFolderPlugin,
|
|
91
91
|
counterPlugin,
|
|
92
92
|
],
|
|
93
|
-
define: {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
define: "define" in (userConfig.esbuildOptions ?? {})
|
|
94
|
+
? userConfig.esbuildOptions.define
|
|
95
|
+
: {
|
|
96
|
+
// Intentionally added before process
|
|
97
|
+
michiProcess: JSON.stringify({
|
|
98
|
+
env: {
|
|
99
|
+
NODE_ENV: process.env.NODE_ENV,
|
|
100
|
+
COMMIT_SHA: commitSha,
|
|
101
|
+
...(userConfig.env ?? {}),
|
|
102
|
+
},
|
|
103
|
+
}),
|
|
104
|
+
},
|
|
103
105
|
inject: [
|
|
104
106
|
...devServerListener,
|
|
105
107
|
...(userConfig.esbuildOptions?.inject ?? []),
|
|
106
108
|
],
|
|
107
|
-
...(userConfig.esbuildOptions?.define ?? {}),
|
|
108
109
|
},
|
|
109
110
|
};
|
|
110
111
|
function findSymbolickLinkRealPath(packagePath) {
|
package/bin/utils/pngToIco.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function pngToIco(files: Buffer[], iconSizes: number[]): Promise<Buffer
|
|
1
|
+
export declare function pngToIco(files: Buffer[], iconSizes: number[]): Promise<Buffer<ArrayBuffer>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michijs/dev-server",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.26",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/michijs/dev-server.git"
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@michijs/tsconfig": "0.0.4",
|
|
33
|
-
"@types/node": "22.9.
|
|
33
|
+
"@types/node": "22.9.3",
|
|
34
34
|
"@types/yargs": "17.0.33",
|
|
35
|
-
"typescript": "5.
|
|
35
|
+
"typescript": "5.7.2"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"react",
|