File tree Expand file tree Collapse file tree
sandbox/my-third/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { LaunchQLMigrate } from '@pgpmjs/core' ;
1+ import { PgpmMigrate } from '@pgpmjs/core' ;
22import { CLIOptions , Inquirerer } from 'inquirerer' ;
33import { ParsedArgs } from 'minimist' ;
44import { Pool } from 'pg' ;
@@ -56,7 +56,7 @@ export class CLIDeployTestFixture extends TestFixture {
5656 } ;
5757
5858 // Initialize migrate schema
59- const migrate = new LaunchQLMigrate ( config ) ;
59+ const migrate = new PgpmMigrate ( config ) ;
6060 await migrate . initialize ( ) ;
6161
6262 // Get pool for test database operations
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default async (
4242 const pkg = new PgpmPackage ( cwd ) ;
4343
4444 if ( ! pkg . isInModule ( ) ) {
45- throw new Error ( 'Not in a LaunchQL module directory. Please run this command from within a module.' ) ;
45+ throw new Error ( 'Not in a PGPM module directory. Please run this command from within a module.' ) ;
4646 }
4747
4848 const modulePath = pkg . getModulePath ( ) ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default async (
3232 const project = new PgpmPackage ( cwd ) ;
3333
3434 if ( ! project . isInModule ( ) ) {
35- throw new Error ( 'You must run this command inside a LaunchQL module.' ) ;
35+ throw new Error ( 'You must run this command inside a PGPM module.' ) ;
3636 }
3737
3838 const info = project . getModuleInfo ( ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export default async function runModuleSetup(
1414 const project = new PgpmPackage ( cwd ) ;
1515
1616 if ( ! project . workspacePath ) {
17- log . error ( 'Not inside a LaunchQL workspace.' ) ;
17+ log . error ( 'Not inside a PGPM workspace.' ) ;
1818 throw errors . NOT_IN_WORKSPACE ( { } ) ;
1919 }
2020
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default async (
3636 const project = new PgpmPackage ( cwd ) ;
3737
3838 if ( ! project . isInModule ( ) ) {
39- throw new Error ( 'You must run this command inside a LaunchQL module.' ) ;
39+ throw new Error ( 'You must run this command inside a PGPM module.' ) ;
4040 }
4141
4242 if ( argv . _ . length === 0 ) {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export default async (
6060 const pkg = new PgpmPackage ( cwd ) ;
6161
6262 if ( ! pkg . isInModule ( ) ) {
63- throw new Error ( 'This command must be run inside a LaunchQL module.' ) ;
63+ throw new Error ( 'This command must be run inside a PGPM module.' ) ;
6464 }
6565
6666 const includePackagesFlag = typeof includePackages === 'boolean' ? includePackages : true ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default async (
4444 const pkg = new PgpmPackage ( cwd ) ;
4545
4646 if ( ! pkg . isInModule ( ) ) {
47- throw new Error ( 'Not in a LaunchQL module directory. Please run this command from within a module.' ) ;
47+ throw new Error ( 'Not in a PGPM module directory. Please run this command from within a module.' ) ;
4848 }
4949
5050 const opts = getEnvOptions ( {
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export default async (
7474 throw new Error ( 'No package selected. Cannot add tag without specifying a target package.' ) ;
7575 }
7676 } else {
77- throw new Error ( 'This command must be run inside a LaunchQL workspace or module.' ) ;
77+ throw new Error ( 'This command must be run inside a PGPM workspace or module.' ) ;
7878 }
7979
8080 const questions : Question [ ] = [ ] ;
Original file line number Diff line number Diff line change 1- import { deployFast , LaunchQLProject } from '@pgpmjs/core' ;
1+ import { deployFast , PgpmPackage } from '@pgpmjs/core' ;
22import { resolve } from 'path' ;
33import { getEnvOptions } from '@pgpmjs/env' ;
44import { randomUUID } from 'crypto' ;
@@ -7,7 +7,7 @@ import { getPgPool } from 'pg-cache';
77
88it ( 'LaunchQL' , async ( ) => {
99 const db = 'db-' + randomUUID ( ) ;
10- const project = new LaunchQLProject ( resolve ( __dirname + '/../' ) ) ;
10+ const project = new PgpmPackage ( resolve ( __dirname + '/../' ) ) ;
1111 const opts = getEnvOptions ( {
1212 pg : {
1313 database : db
Original file line number Diff line number Diff line change 1- import { deployFast , LaunchQLProject } from '@pgpmjs/core' ;
1+ import { deployFast , PgpmPackage } from '@pgpmjs/core' ;
22import { getEnvOptions } from '@pgpmjs/env' ;
33import { getPgPool } from 'pg-cache' ;
44import { randomUUID } from 'crypto' ;
55import { execSync } from 'child_process' ;
66
77it ( 'GraphQL query' , async ( ) => {
88 const newDb = 'db-lql-' + randomUUID ( ) ;
9- const project = new LaunchQLProject ( process . env . LQL_LAUNCHQL ) ;
9+ const project = new PgpmPackage ( process . env . LQL_LAUNCHQL ) ;
1010 const opts = getEnvOptions ( {
1111 pg : {
1212 database : newDb
You can’t perform that action at this time.
0 commit comments