@fougere/cli 0.9.0-alpha.0 → 0.9.0-alpha.1
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": "@fougere/cli",
|
|
3
|
-
"version": "0.9.0-alpha.
|
|
3
|
+
"version": "0.9.0-alpha.1",
|
|
4
4
|
"description": "The Fougere CLI — compose a workspace, serve a frond, call an operation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fougere",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"jiti": "^2.4.2",
|
|
43
43
|
"picocolors": "^1.1.1",
|
|
44
44
|
"safe-regex": "^2.1.1",
|
|
45
|
-
"@fougere/adapter-sql": "0.9.0-alpha.
|
|
46
|
-
"@fougere/
|
|
47
|
-
"@fougere/
|
|
48
|
-
"@fougere/
|
|
49
|
-
"@fougere/
|
|
50
|
-
"@fougere/
|
|
51
|
-
"@fougere/
|
|
45
|
+
"@fougere/adapter-sql": "0.9.0-alpha.1",
|
|
46
|
+
"@fougere/core": "0.9.0-alpha.1",
|
|
47
|
+
"@fougere/container": "0.9.0-alpha.1",
|
|
48
|
+
"@fougere/defaults": "0.9.0-alpha.1",
|
|
49
|
+
"@fougere/schema": "0.9.0-alpha.1",
|
|
50
|
+
"@fougere/compiler": "0.9.0-alpha.1",
|
|
51
|
+
"@fougere/transport-http": "0.9.0-alpha.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"vitest": "^4.1.0"
|
|
@@ -11,7 +11,7 @@ import { createJiti } from 'jiti';
|
|
|
11
11
|
import { createLocalRunner, Logger } from '@fougere/core';
|
|
12
12
|
import { frondAliases } from '@fougere/compiler';
|
|
13
13
|
import { setModuleLoader } from '@fougere/core/node';
|
|
14
|
-
import {
|
|
14
|
+
import { bootApp } from '@fougere/defaults';
|
|
15
15
|
import { serve } from '@fougere/transport-http';
|
|
16
16
|
|
|
17
17
|
// `frondAliases` is what makes `@fronds/<neighbour>/entities/X.js` resolve — the
|
|
@@ -28,7 +28,7 @@ const log = new Logger('frond-host');
|
|
|
28
28
|
|
|
29
29
|
// `topology: false` — this process *is* the frond, it doesn't route back out.
|
|
30
30
|
// Storage comes from fougere.config.ts; this host names no engine.
|
|
31
|
-
const app = await
|
|
31
|
+
const app = await bootApp(process.cwd(), { topology: false });
|
|
32
32
|
|
|
33
33
|
const { port } = await serve(createLocalRunner(app), { port: Number(process.env.PORT ?? 4000) });
|
|
34
34
|
log.info(`frond served — POST http://127.0.0.1:${port}/_fougere/call`);
|