create-absolutejs 0.16.0 → 0.17.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/README.md +8 -1
- package/dist/data.js +13 -0
- package/dist/generators/project/generateImportsBlock.js +11 -4
- package/dist/types.d.ts +1 -0
- package/dist/versions.d.ts +1 -0
- package/dist/versions.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,7 +116,14 @@ Usage: create-absolute [project-name] [options]
|
|
|
116
116
|
ORM to configure: `drizzle` | `prisma` | `none`.
|
|
117
117
|
|
|
118
118
|
- `--plugin <plugin>`
|
|
119
|
-
Elysia plugin(s) to include (repeatable); `none` skips plugin setup.
|
|
119
|
+
Elysia plugin(s) to include (repeatable); `none` skips plugin setup. Select
|
|
120
|
+
`@absolutejs/observability` to mount the credential-safe error, Replay,
|
|
121
|
+
vitals, and Support Mode relay from environment configuration.
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
bun create absolutejs my-app \
|
|
125
|
+
--plugin @absolutejs/observability
|
|
126
|
+
```
|
|
120
127
|
|
|
121
128
|
- `--react`
|
|
122
129
|
Include a React frontend.
|
package/dist/data.js
CHANGED
|
@@ -53,6 +53,19 @@ export const availableFrontends = [
|
|
|
53
53
|
];
|
|
54
54
|
export const availableORMs = ['drizzle', 'prisma', 'none'];
|
|
55
55
|
export const availablePlugins = [
|
|
56
|
+
{
|
|
57
|
+
imports: [
|
|
58
|
+
{
|
|
59
|
+
config: null,
|
|
60
|
+
importFrom: '@absolutejs/observability/elysia',
|
|
61
|
+
isPlugin: true,
|
|
62
|
+
packageName: 'createManagedObservabilityRelayFromEnv'
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
label: magenta('🔎 @absolutejs/observability + Support Mode'),
|
|
66
|
+
latestVersion: versions['@absolutejs/observability'],
|
|
67
|
+
value: '@absolutejs/observability'
|
|
68
|
+
},
|
|
56
69
|
{
|
|
57
70
|
imports: [{ config: null, isPlugin: true, packageName: 'cors' }],
|
|
58
71
|
label: cyan('⚙️ @elysia/cors'),
|
|
@@ -14,10 +14,17 @@ export const generateImportsBlock = ({ deps, flags, orm, authOption, databaseEng
|
|
|
14
14
|
const importsList = dependency.imports ?? [];
|
|
15
15
|
if (importsList.length === 0)
|
|
16
16
|
continue;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.
|
|
20
|
-
.
|
|
17
|
+
const bySource = new Map();
|
|
18
|
+
for (const imported of importsList) {
|
|
19
|
+
const source = imported.importFrom ?? dependency.value;
|
|
20
|
+
bySource.set(source, [
|
|
21
|
+
...(bySource.get(source) ?? []),
|
|
22
|
+
imported.packageName
|
|
23
|
+
]);
|
|
24
|
+
}
|
|
25
|
+
for (const [source, names] of bySource) {
|
|
26
|
+
rawImports.push(`import { ${names.sort().join(', ')} } from '${source}'`);
|
|
27
|
+
}
|
|
21
28
|
}
|
|
22
29
|
const buildExamplePath = (dir, file) => `../frontend${dir ? `/${dir}` : ''}/pages/${file}`;
|
|
23
30
|
const reactDir = frontendDirectories.react;
|
package/dist/types.d.ts
CHANGED
package/dist/versions.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const versions: {
|
|
|
20
20
|
readonly '@absolutejs/execution': "0.14.4";
|
|
21
21
|
readonly '@absolutejs/manifest': "0.9.0";
|
|
22
22
|
readonly '@absolutejs/mcp': "0.12.0";
|
|
23
|
+
readonly '@absolutejs/observability': "0.6.0";
|
|
23
24
|
readonly '@absolutejs/policy': "0.2.0";
|
|
24
25
|
readonly '@absolutejs/secrets': "0.7.0";
|
|
25
26
|
readonly '@absolutejs/sync-bus-pg': "0.2.0";
|
package/dist/versions.js
CHANGED
|
@@ -21,6 +21,7 @@ export const versions = {
|
|
|
21
21
|
'@absolutejs/execution': '0.14.4',
|
|
22
22
|
'@absolutejs/manifest': '0.9.0',
|
|
23
23
|
'@absolutejs/mcp': '0.12.0',
|
|
24
|
+
'@absolutejs/observability': '0.6.0',
|
|
24
25
|
'@absolutejs/policy': '0.2.0',
|
|
25
26
|
'@absolutejs/secrets': '0.7.0',
|
|
26
27
|
'@absolutejs/sync-bus-pg': '0.2.0',
|
package/package.json
CHANGED