@hono/vite-build 1.9.0 → 1.9.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @hono/vite-build
2
2
 
3
+ ## 1.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#332](https://github.com/honojs/vite-plugins/pull/332) [`beeff30a8ed43a6071ba7e40d52a7e5c196cb322`](https://github.com/honojs/vite-plugins/commit/beeff30a8ed43a6071ba7e40d52a7e5c196cb322) Thanks [@0x339](https://github.com/0x339)! - chore(@hono/vite-build): add '@hono/hono' preset for deno adapter
8
+
9
+ ## 1.9.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#330](https://github.com/honojs/vite-plugins/pull/330) [`11107bc013ac40c891b4a57d0ef718d822b1fa2c`](https://github.com/honojs/vite-plugins/commit/11107bc013ac40c891b4a57d0ef718d822b1fa2c) Thanks [@ryuapp](https://github.com/ryuapp)! - Add vite-plugin keyword for [Vite plugin registry](https://registry.vite.dev/)
14
+
3
15
  ## 1.9.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -100,7 +100,7 @@ type BuildOptions = {
100
100
  external?: string[]
101
101
  minify?: boolean
102
102
  emptyOutDir?: boolean
103
- preset?: 'hono' | 'hono/tiny' | 'hono/quick'
103
+ preset?: 'hono' | 'hono/tiny' | 'hono/quick' '@hono/hono'
104
104
  }
105
105
  ```
106
106
 
@@ -6,7 +6,9 @@ const denoBuildPlugin = (pluginOptions) => {
6
6
  ...{
7
7
  entryContentBeforeHooks: [
8
8
  async (appName, options) => {
9
- let code = "import { serveStatic } from 'hono/deno'\n";
9
+ const preset = pluginOptions?.preset ?? "hono";
10
+ let code = `import { serveStatic } from '${preset}/deno'
11
+ `;
10
12
  code += serveStaticHook(appName, {
11
13
  filePaths: options?.staticPaths,
12
14
  root: pluginOptions?.staticRoot
@@ -2,7 +2,7 @@ type EntryContentHookOptions = {
2
2
  staticPaths: string[];
3
3
  };
4
4
  type EntryContentHook = (appName: string, options?: EntryContentHookOptions) => string | Promise<string>;
5
- declare const presets: readonly ["hono", "hono/tiny", "hono/quick"];
5
+ declare const presets: readonly ["hono", "hono/tiny", "hono/quick", "@hono/hono"];
6
6
  type Preset = (typeof presets)[number];
7
7
  type GetEntryContentOptions = {
8
8
  entry: string[];
@@ -1,5 +1,5 @@
1
1
  import { normalize } from "node:path";
2
- const presets = ["hono", "hono/tiny", "hono/quick"];
2
+ const presets = ["hono", "hono/tiny", "hono/quick", "@hono/hono"];
3
3
  const normalizePaths = (paths) => {
4
4
  return paths.map((p) => {
5
5
  let normalizedPath = normalize(p).replace(/\\/g, "/");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hono/vite-build",
3
3
  "description": "Vite plugin to build your Hono app",
4
- "version": "1.9.0",
4
+ "version": "1.9.2",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
7
7
  "type": "module",
@@ -88,6 +88,10 @@
88
88
  "access": "public"
89
89
  },
90
90
  "homepage": "https://github.com/honojs/vite-plugins",
91
+ "keywords": [
92
+ "hono",
93
+ "vite-plugin"
94
+ ],
91
95
  "devDependencies": {
92
96
  "@hono/node-server": "^1.19.6",
93
97
  "@types/node": "^24.10.0",