diff --git a/README.md b/README.md index fc581fe..e7d94a7 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Ensure that you have both `postgres` and a `postgres-ws-proxy` containers runnin You'll likely want to replace the `build:` sections for the services in the e2e test example `.yml` file with `image:`. For example, use `image: postgres:17.7` for the `postgres` service. For the proxy, you can pull the docker image from `ghcr.io/schemavaults/dbh/postgres-ws-proxy`; use the version number equal to your `@schemavaults/dbh` npm package installation: ```md -# NPM Package: @schemavaults/dbh@0.11.1 => ghcr.io/schemavaults/dbh/postgres-ws-proxy:0.11.1 +# NPM Package: @schemavaults/dbh@0.11.2 => ghcr.io/schemavaults/dbh/postgres-ws-proxy:0.11.2 ``` ### In your application server code diff --git a/package.json b/package.json index 2ba9969..72e904d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@schemavaults/dbh", - "version": "0.11.1", + "version": "0.11.2", "description": "Easily connect to PostgresDB from serverless environment", "license": "UNLICENSED", "private": false, diff --git a/src/build-db-migrations.ts b/src/build-db-migrations.ts index 0b56716..91fd0e1 100644 --- a/src/build-db-migrations.ts +++ b/src/build-db-migrations.ts @@ -189,10 +189,13 @@ buildDbMigrations } } - // Print summary + // Print summary (sorted by filename — this is the order migrations apply in) console.log(""); console.log("Built migrations:"); - for (const migration of migrationsResult.outputs) { + const sortedOutputs = [...migrationsResult.outputs].sort((a, b) => + basename(a.path).localeCompare(basename(b.path)), + ); + for (const migration of sortedOutputs) { console.log(` - ${basename(migration.path)} (${migration.size} bytes)`); } console.log("");