postgresdk 0.7.3 → 0.7.4

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -4030,7 +4030,7 @@ Usage:
4030
4030
 
4031
4031
  Commands:
4032
4032
  init Create a postgresdk.config.ts file
4033
- generate Generate SDK from database
4033
+ generate, gen Generate SDK from database
4034
4034
  pull Pull SDK from API endpoint
4035
4035
  version Show version
4036
4036
  help Show help
@@ -4050,6 +4050,7 @@ Pull Options:
4050
4050
  Examples:
4051
4051
  postgresdk init # Create config file
4052
4052
  postgresdk generate # Generate using postgresdk.config.ts
4053
+ postgresdk gen # Short alias for generate
4053
4054
  postgresdk generate -c custom.config.ts
4054
4055
  postgresdk pull --from=https://api.com --output=./src/sdk
4055
4056
  postgresdk pull # Pull using config file
@@ -4059,7 +4060,7 @@ Examples:
4059
4060
  if (command === "init") {
4060
4061
  const { initCommand: initCommand2 } = await Promise.resolve().then(() => (init_cli_init(), exports_cli_init));
4061
4062
  await initCommand2(args.slice(1));
4062
- } else if (command === "generate") {
4063
+ } else if (command === "generate" || command === "gen") {
4063
4064
  let configPath = "postgresdk.config.ts";
4064
4065
  const configIndex = args.findIndex((a) => a === "-c" || a === "--config");
4065
4066
  if (configIndex !== -1 && args[configIndex + 1]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postgresdk",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Generate a typed server/client SDK from a Postgres schema (includes, Zod, Hono).",
5
5
  "type": "module",
6
6
  "bin": {