create-loutre 0.3.0 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-loutre",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Loutre project initializer",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@clack/prompts": "^1.7.0",
21
- "@loutrejs/loutre": "^0.3.0",
21
+ "@loutrejs/loutre": "^0.4.0",
22
22
  "commander": "^15.0.0"
23
23
  },
24
24
  "repository": {
@@ -1,4 +1,5 @@
1
1
  import { bunRuntime } from '@loutrejs/loutre/runtime/bun'
2
2
  import application from './app.js'
3
3
 
4
- await bunRuntime.serve({ application })
4
+ const app = await bunRuntime.create({ application })
5
+ await app.serve()
@@ -1,4 +1,5 @@
1
1
  import { denoRuntime } from '@loutrejs/loutre/runtime/deno'
2
2
  import application from './app.ts'
3
3
 
4
- await denoRuntime.serve({ application })
4
+ const app = await denoRuntime.create({ application })
5
+ await app.serve()
@@ -1,4 +1,5 @@
1
1
  import { nodeRuntime } from '@loutrejs/node'
2
2
  import application from './app.js'
3
3
 
4
- await nodeRuntime.serve({ application })
4
+ const app = await nodeRuntime.create({ application })
5
+ await app.serve()