@michijs/dev-server 0.7.24 → 0.7.25

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>;
@@ -27,8 +27,8 @@ declare const config: {
27
27
  esbuildOptions: {
28
28
  plugins: import("esbuild").Plugin[];
29
29
  define: {
30
- michiProcess: string;
31
- };
30
+ [key: string]: string;
31
+ } | undefined;
32
32
  inject: string[];
33
33
  bundle: boolean;
34
34
  splitting: boolean;
@@ -90,7 +90,7 @@ declare const config: {
90
90
  minifySyntax: boolean;
91
91
  lineLimit?: number;
92
92
  charset?: import("esbuild").Charset;
93
- treeShaking?: boolean;
93
+ treeShaking: boolean;
94
94
  ignoreAnnotations?: boolean;
95
95
  jsx?: "transform" | "preserve" | "automatic";
96
96
  jsxFactory?: string;
@@ -56,6 +56,7 @@ const config = {
56
56
  minifyWhitespace: minify,
57
57
  sourcemap: process.env.NODE_ENV === "DEVELOPMENT",
58
58
  splitting: true,
59
+ treeShaking: true,
59
60
  bundle: process.env.NODE_ENV !== "DISTRIBUTION",
60
61
  keepNames: minify,
61
62
  entryPoints: [defaultEntryPoint],
@@ -90,21 +91,22 @@ const config = {
90
91
  publicFolderPlugin,
91
92
  counterPlugin,
92
93
  ],
93
- define: {
94
- // Intentionally added before process
95
- michiProcess: JSON.stringify({
96
- env: {
97
- NODE_ENV: process.env.NODE_ENV,
98
- COMMIT_SHA: commitSha,
99
- ...(userConfig.env ?? {}),
100
- },
101
- }),
102
- },
94
+ define: "define" in (userConfig.esbuildOptions ?? {})
95
+ ? userConfig.esbuildOptions.define
96
+ : {
97
+ // Intentionally added before process
98
+ michiProcess: JSON.stringify({
99
+ env: {
100
+ NODE_ENV: process.env.NODE_ENV,
101
+ COMMIT_SHA: commitSha,
102
+ ...(userConfig.env ?? {}),
103
+ },
104
+ }),
105
+ },
103
106
  inject: [
104
107
  ...devServerListener,
105
108
  ...(userConfig.esbuildOptions?.inject ?? []),
106
109
  ],
107
- ...(userConfig.esbuildOptions?.define ?? {}),
108
110
  },
109
111
  };
110
112
  function findSymbolickLinkRealPath(packagePath) {
@@ -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.24",
4
+ "version": "0.7.25",
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.0",
33
+ "@types/node": "22.9.3",
34
34
  "@types/yargs": "17.0.33",
35
- "typescript": "5.6.3"
35
+ "typescript": "5.7.2"
36
36
  },
37
37
  "keywords": [
38
38
  "react",