@karmaniverous/smoz 0.2.4 → 0.2.5

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
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "description": "John Galt Services back end.",
33
33
  "devDependencies": {
34
- "@rollup/plugin-alias": "^5.1.1",
35
34
  "@dotenvx/dotenvx": "^1.49.0",
36
35
  "@eslint/js": "^9.35.0",
36
+ "@rollup/plugin-alias": "^5.1.1",
37
37
  "@rollup/plugin-typescript": "^12.1.4",
38
38
  "@serverless/typescript": "^4.18.2",
39
39
  "@types/aws-lambda": "^8.10.152",
@@ -49,7 +49,6 @@
49
49
  "fs-extra": "^11.3.1",
50
50
  "knip": "^5.63.1",
51
51
  "lefthook": "^1.13.0",
52
- "pkg-dir": "^9.0.0",
53
52
  "prettier": "^3.6.2",
54
53
  "release-it": "^19.0.4",
55
54
  "rimraf": "^6.0.1",
@@ -182,5 +181,5 @@
182
181
  "templates:lint": "eslint --fix -c templates/default/eslint.config.ts \"templates/default/**/*.{ts,tsx,js,jsx}\" \"templates/default/eslint.config.ts\""
183
182
  },
184
183
  "type": "module",
185
- "version": "0.2.4"
184
+ "version": "0.2.5"
186
185
  }
@@ -1,7 +1,6 @@
1
- import * as path from 'node:path';
2
-
3
- import * as fs from 'fs-extra';
1
+ import fs from 'fs-extra';
4
2
  import { packageDirectorySync } from 'package-directory';
3
+ import path from 'path';
5
4
  import { createDocument } from 'zod-openapi';
6
5
 
7
6
  import { app } from '@/app/config/app.config';
@@ -22,18 +21,20 @@ console.log('Generating OpenAPI document...');
22
21
  const paths = app.buildAllOpenApiPaths();
23
22
  export const doc = createDocument({
24
23
  openapi: '3.1.0',
25
- servers: [{ description: 'Dev', url: 'http://localhost' }],
24
+ servers: [
25
+ { description: 'Production', url: 'https://api.example.test' },
26
+ { description: 'Dev', url: 'https://api.dev.example.test' },
27
+ ],
26
28
  info: {
27
- title: process.env.npm_package_name ?? 'smoz-app',
28
- version: process.env.npm_package_version ?? '0.0.0',
29
+ title: process.env.npm_package_name ?? '',
30
+ version: process.env.npm_package_version ?? '',
29
31
  },
30
32
  paths,
31
33
  });
32
34
 
33
35
  const pkgDir = packageDirectorySync();
34
- if (!pkgDir) {
35
- throw new Error('Could not resolve package root directory');
36
- }
36
+ if (!pkgDir) throw new Error('Could not find package root directory');
37
+
37
38
  const outDir = path.join(pkgDir, 'app', 'generated');
38
39
  fs.ensureDirSync(outDir);
39
40
  fs.writeFileSync(
@@ -5,9 +5,9 @@
5
5
  "version": "0.0.0",
6
6
  "dependencies": {
7
7
  "@middy/core": "^6.4.5",
8
- "zod": "^4.1.6",
9
8
  "fs-extra": "^11.3.1",
10
- "package-directory": "^8.1.0"
9
+ "package-directory": "^8.1.0",
10
+ "zod": "^4.1.6"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@serverless/typescript": "^4.18.2",