@evjs/cli 0.0.30 → 0.0.32

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 +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -166,7 +166,7 @@ export async function dev(userConfig, options) {
166
166
  fs.writeFileSync(bootstrapPath, [
167
167
  `const handler = require(${JSON.stringify(serverBundlePath)}).default;`,
168
168
  `const { serve } = require("@evjs/server/node");`,
169
- `serve({ fetch: handler }, { port: ${serverPort}, https: ${JSON.stringify(config.server.dev.https)} });`,
169
+ `serve({ fetch: handler.fetch }, { port: ${serverPort}, https: ${JSON.stringify(config.server.dev.https)} });`,
170
170
  ].join("\n"));
171
171
  const runtimeArgs = [bootstrapPath];
172
172
  // Don't await execa here since it's a long-running watch process
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evjs/cli",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "CLI and configuration layer for the evjs framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",