@michijs/dev-server 0.8.13 → 0.8.14

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 @@ declare const config: {
17
17
  };
18
18
  manifest: {
19
19
  name: string;
20
- options?: import("../types.js").ServerWebAppManifest;
20
+ options?: import("../types.js").ServerWebAppManifest | chrome.runtime.ManifestV3;
21
21
  };
22
22
  wellKnown?: import("../types.js").WellKnown;
23
23
  path: string;
@@ -27,10 +27,12 @@ if (fs.existsSync("michi.config.ts")) {
27
27
  ...defaultProductionConfig,
28
28
  environment: process.env.NODE_ENV,
29
29
  });
30
- config.public?.manifest?.options?.file_handlers?.forEach((fileHandler) => {
31
- Object.entries(fileHandler.accept).forEach(([name, value]) => {
32
- fileHandler.accept[name] = Array.from(value);
30
+ const options = config.public?.manifest ?? {};
31
+ if ("file_handlers" in options)
32
+ options?.file_handlers?.forEach((fileHandler) => {
33
+ Object.entries(fileHandler.accept).forEach(([name, value]) => {
34
+ fileHandler.accept[name] = Array.from(value);
35
+ });
33
36
  });
34
- });
35
37
  }
36
38
  export const userConfig = config;
package/bin/types.d.ts CHANGED
@@ -131,7 +131,7 @@ export interface PublicOptions {
131
131
  /**
132
132
  * startup parameters and application defaults for when a web application is launched.
133
133
  */
134
- options?: ServerWebAppManifest;
134
+ options?: ServerWebAppManifest | chrome.runtime.ManifestV3;
135
135
  };
136
136
  }
137
137
  interface ProtocolHandler {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@michijs/dev-server",
3
3
  "license": "MIT",
4
- "version": "0.8.13",
4
+ "version": "0.8.14",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/michijs/dev-server.git"
@@ -29,8 +29,8 @@
29
29
  "link": "bunx concurrently bun:dist-w bun:bun-link"
30
30
  },
31
31
  "devDependencies": {
32
- "@michijs/shared-configs": "0.0.33",
33
- "@types/node": "25.0.3",
32
+ "@michijs/shared-configs": "0.0.35",
33
+ "@types/node": "25.1.0",
34
34
  "@types/yargs": "17.0.35",
35
35
  "typescript": "5.9.3"
36
36
  },
@@ -53,12 +53,13 @@
53
53
  "node": ">=14.16"
54
54
  },
55
55
  "dependencies": {
56
+ "@types/chrome": "^0.1.36",
56
57
  "colorthief": "2.6.0",
57
58
  "@types/web-app-manifest": "1.0.9",
58
59
  "esbuild": "0.27.2",
59
60
  "node-watch": "0.7.4",
60
61
  "open": "11.0.0",
61
- "playwright-core": "1.57.0",
62
+ "playwright-core": "1.58.0",
62
63
  "sharp": "0.34.5",
63
64
  "yargs": "18.0.0"
64
65
  }