Skip to content

Commit e890c9e

Browse files
committed
refactor(pgpm): use @pgsql/scripts for revert/verify generation
revertFor/verifyFor moved out of @pgsql/transform into the new @pgsql/scripts package upstream. Lockfile update deferred until the package is published.
1 parent a604bcf commit e890c9e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pgpm/transform/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
},
4545
"dependencies": {
4646
"@pgpmjs/naming-spec": "workspace:^",
47+
"@pgsql/scripts": "^18.0.0",
4748
"@pgsql/transform": "^18.10.0",
4849
"plpgsql-parser": "^18.2.2"
4950
}

pgpm/transform/src/granularity-driver.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818
* - `consolidated` — additionally inlines FKs proven safe by the graph.
1919
*/
2020
import { pathFor } from '@pgpmjs/naming-spec';
21+
import { revertFor, verifyFor } from '@pgsql/scripts';
2122
import type { Granularity, StatementFacts } from '@pgsql/transform';
2223
import {
2324
buildStatementGraph,
2425
classifyStatements,
2526
identityOf,
26-
restructureSql,
27-
revertFor,
28-
verifyFor
27+
restructureSql
2928
} from '@pgsql/transform';
3029

3130
export type { Granularity } from '@pgsql/transform';

0 commit comments

Comments
 (0)