@auto-engineer/server-generator-apollo-emmett 1.108.0 → 1.110.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
@@ -32,8 +32,8 @@
32
32
  "uuid": "^13.0.0",
33
33
  "web-streams-polyfill": "^4.1.0",
34
34
  "zod": "^3.22.4",
35
- "@auto-engineer/narrative": "1.108.0",
36
- "@auto-engineer/message-bus": "1.108.0"
35
+ "@auto-engineer/narrative": "1.110.0",
36
+ "@auto-engineer/message-bus": "1.110.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
@@ -44,9 +44,9 @@
44
44
  "typescript": "^5.8.3",
45
45
  "vitest": "^3.2.4",
46
46
  "tsx": "^4.19.2",
47
- "@auto-engineer/cli": "1.108.0"
47
+ "@auto-engineer/cli": "1.110.0"
48
48
  },
49
- "version": "1.108.0",
49
+ "version": "1.110.0",
50
50
  "scripts": {
51
51
  "generate:server": "tsx src/cli/index.ts",
52
52
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts && rm -rf dist/src/codegen/templates && mkdir -p dist/src/codegen && cp -r src/codegen/templates dist/src/codegen/templates && cp src/server.ts dist/src && cp -r src/utils dist/src && cp -r src/domain dist/src",
@@ -333,6 +333,62 @@ export class HealthResolver {
333
333
  }
334
334
  `;
335
335
 
336
+ const BIOME_JSON = `{
337
+ "$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
338
+ "vcs": {
339
+ "enabled": true,
340
+ "clientKind": "git",
341
+ "useIgnoreFile": false
342
+ },
343
+ "files": {
344
+ "ignoreUnknown": true
345
+ },
346
+ "formatter": {
347
+ "indentStyle": "tab",
348
+ "indentWidth": 2,
349
+ "lineWidth": 120,
350
+ "lineEnding": "lf"
351
+ },
352
+ "javascript": {
353
+ "formatter": {
354
+ "quoteStyle": "single",
355
+ "trailingCommas": "all",
356
+ "semicolons": "always",
357
+ "arrowParentheses": "always"
358
+ }
359
+ },
360
+ "linter": {
361
+ "rules": {
362
+ "recommended": true,
363
+ "correctness": {
364
+ "noUnusedImports": "error",
365
+ "noUnusedVariables": "error"
366
+ },
367
+ "suspicious": {
368
+ "noExplicitAny": "error",
369
+ "noConsole": "warn",
370
+ "noEmptyBlockStatements": "error"
371
+ },
372
+ "style": {
373
+ "useConst": "error",
374
+ "noNonNullAssertion": "error",
375
+ "useImportType": "error",
376
+ "useExportType": "error",
377
+ "useNodejsImportProtocol": "error",
378
+ "noParameterAssign": "error"
379
+ }
380
+ }
381
+ },
382
+ "assist": {
383
+ "actions": {
384
+ "source": {
385
+ "organizeImports": "on"
386
+ }
387
+ }
388
+ }
389
+ }
390
+ `;
391
+
336
392
  const UTILS_INDEX_TS = `export * from './loadResolvers.js';
337
393
  `;
338
394
 
@@ -351,6 +407,7 @@ export async function handleInitializeServerInternal(
351
407
  await writeOrUpdatePackageJson(serverDir);
352
408
  await writeTsconfig(serverDir);
353
409
  await writeVitestConfigIfMissing(serverDir);
410
+ await writeIfMissing(join(serverDir, 'biome.json'), BIOME_JSON);
354
411
  await writeSchemaScriptIfMissing(serverDir, absDest);
355
412
 
356
413
  await writeIfMissing(join(serverDir, 'src', 'server.ts'), SERVER_TS);