@hono/cli 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -5
  2. package/package.json +3 -2
package/dist/cli.js CHANGED
@@ -15865,11 +15865,12 @@ async function* buildAndImportApp(filePath, options = {}) {
15865
15865
  ]
15866
15866
  });
15867
15867
  await context2.watch();
15868
- if (!options.watch) {
15869
- await context2.dispose();
15870
- }
15871
15868
  do {
15872
- yield await appPromise;
15869
+ const app = await appPromise;
15870
+ if (!options.watch) {
15871
+ await context2.dispose();
15872
+ }
15873
+ yield app;
15873
15874
  preparePromise();
15874
15875
  } while (options.watch);
15875
15876
  }
@@ -16507,7 +16508,8 @@ function serveCommand(program2) {
16507
16508
  } else {
16508
16509
  const appFilePath = realpathSync3(appPath);
16509
16510
  const buildIterator = buildAndImportApp(appFilePath, {
16510
- external: ["@hono/node-server"]
16511
+ external: ["@hono/node-server"],
16512
+ sourcemap: true
16511
16513
  });
16512
16514
  app = (await buildIterator.next()).value;
16513
16515
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hono/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "hono": "dist/cli.js"
@@ -9,13 +9,14 @@
9
9
  "build": "tsup",
10
10
  "watch": "tsup --watch",
11
11
  "test": "vitest",
12
- "test:run": "vitest run",
12
+ "test:run": "vitest --run",
13
13
  "test:watch": "vitest watch",
14
14
  "lint": "eslint --ext js,ts src",
15
15
  "lint:fix": "eslint --ext js,ts src --fix",
16
16
  "format": "prettier src --check",
17
17
  "format:fix": "prettier src --write",
18
18
  "postbuild": "publint",
19
+ "prerelease": "bun run build",
19
20
  "release": "np"
20
21
  },
21
22
  "files": [