@vercel/hono 0.0.9 → 0.0.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +6 -3
package/dist/index.js CHANGED
@@ -36,7 +36,8 @@ var build = async (args) => {
36
36
  process.env.EXPERIMENTAL_NODE_TYPESCRIPT_ERRORS = "1";
37
37
  return (0, import_node.build)({
38
38
  ...args,
39
- entrypoint
39
+ entrypoint,
40
+ considerBuildCommand: true
40
41
  });
41
42
  };
42
43
  var findEntrypoint = (files) => {
@@ -72,7 +73,7 @@ var import_node2 = require("@vercel/node");
72
73
  var version = 3;
73
74
  var shouldServe = async (opts) => {
74
75
  const requestPath = opts.requestPath.replace(/\/$/, "");
75
- if (requestPath.startsWith("api")) {
76
+ if (requestPath.startsWith("api") && opts.hasMatched) {
76
77
  return false;
77
78
  }
78
79
  return true;
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@vercel/hono",
3
- "version": "0.0.9",
3
+ "version": "0.0.14",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "homepage": "https://vercel.com/docs",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
7
10
  "repository": {
8
11
  "type": "git",
9
12
  "url": "https://github.com/vercel/vercel.git",
@@ -15,13 +18,13 @@
15
18
  ],
16
19
  "dependencies": {
17
20
  "@vercel/static-config": "3.1.1",
18
- "@vercel/node": "5.3.11",
21
+ "@vercel/node": "5.3.13",
19
22
  "ts-morph": "12.0.0"
20
23
  },
21
24
  "devDependencies": {
22
25
  "@types/jest": "27.5.1",
23
26
  "@types/node": "14.18.33",
24
- "@vercel/build-utils": "11.0.0",
27
+ "@vercel/build-utils": "11.0.1",
25
28
  "execa": "3.2.0",
26
29
  "fs-extra": "11.1.0",
27
30
  "jest-junit": "16.0.0",