Improve TypeScript types and package naming in CLI generator

Adds proper type annotations for database and ORM parameters,
simplifies package names in templates, and renames version utility
function for clarity.
This commit is contained in:
Aman Varshney
2025-03-19 22:34:50 +05:30
parent f2db006cbf
commit 5897e9c04f
9 changed files with 33 additions and 27 deletions

View File

@@ -2,7 +2,7 @@ import path from "node:path";
import fs from "fs-extra";
import { PKG_ROOT } from "../constants";
export const getVersion = () => {
export const getLatestCLIVersion = () => {
const packageJsonPath = path.join(PKG_ROOT, "package.json");
const packageJsonContent = fs.readJSONSync(packageJsonPath);