Skip to content

Commit 9b4aa91

Browse files
committed
fix: update remaining LaunchQL references to PGPM
- Fixed LaunchQLMigrate -> PgpmMigrate in CLI test-utils - Updated error messages in pgpm commands to say 'PGPM' instead of 'LaunchQL' - Fixed LaunchQLProject -> PgpmPackage in sandbox test files Co-Authored-By: Dan Lynch <pyramation@gmail.com>
1 parent f513aa9 commit 9b4aa91

13 files changed

Lines changed: 20 additions & 20 deletions

File tree

packages/cli/test-utils/CLIDeployTestFixture.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LaunchQLMigrate } from '@pgpmjs/core';
1+
import { PgpmMigrate } from '@pgpmjs/core';
22
import { CLIOptions,Inquirerer } from 'inquirerer';
33
import { ParsedArgs } from 'minimist';
44
import { 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

packages/pgpm/src/commands/clear.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

packages/pgpm/src/commands/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

packages/pgpm/src/commands/init/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

packages/pgpm/src/commands/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

packages/pgpm/src/commands/plan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

packages/pgpm/src/commands/remove.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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({

packages/pgpm/src/commands/tag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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[] = [];

sandbox/my-third/__tests__/deploy-fast.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { deployFast, LaunchQLProject } from '@pgpmjs/core';
1+
import { deployFast, PgpmPackage } from '@pgpmjs/core';
22
import { resolve } from 'path';
33
import { getEnvOptions } from '@pgpmjs/env';
44
import { randomUUID } from 'crypto';
@@ -7,7 +7,7 @@ import { getPgPool } from 'pg-cache';
77

88
it('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

sandbox/my-third/__tests__/deploy-introspect.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { deployFast, LaunchQLProject } from '@pgpmjs/core';
1+
import { deployFast, PgpmPackage } from '@pgpmjs/core';
22
import { getEnvOptions } from '@pgpmjs/env';
33
import { getPgPool } from 'pg-cache';
44
import { randomUUID } from 'crypto';
55
import { execSync } from 'child_process';
66

77
it('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

0 commit comments

Comments
 (0)