pgpm 0.1.2 → 0.2.0

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.
package/commands/clear.js CHANGED
@@ -38,7 +38,7 @@ exports.default = async (argv, prompter, _options) => {
38
38
  if (!modulePath) {
39
39
  throw new Error('Could not resolve module path');
40
40
  }
41
- const planPath = path_1.default.join(modulePath, 'launchql.plan');
41
+ const planPath = path_1.default.join(modulePath, 'pgpm.plan');
42
42
  const result = (0, core_2.parsePlanFile)(planPath);
43
43
  if (result.errors.length > 0) {
44
44
  throw types_1.errors.PLAN_PARSE_ERROR({ planPath, errors: result.errors.map(e => e.message).join(', ') });
@@ -10,9 +10,9 @@ const database_1 = require("../../utils/database");
10
10
  const log = new logger_1.Logger('migrate-deps');
11
11
  exports.default = async (argv, prompter, options) => {
12
12
  const cwd = argv.cwd || process.cwd();
13
- const planPath = (0, path_1.join)(cwd, 'launchql.plan');
13
+ const planPath = (0, path_1.join)(cwd, 'pgpm.plan');
14
14
  if (!(0, fs_1.existsSync)(planPath)) {
15
- log.error(`No launchql.plan found in ${cwd}`);
15
+ log.error(`No pgpm.plan found in ${cwd}`);
16
16
  process.exit(1);
17
17
  }
18
18
  // Get specific change to analyze
@@ -10,9 +10,9 @@ const database_1 = require("../../utils/database");
10
10
  const log = new logger_1.Logger('migrate-list');
11
11
  exports.default = async (argv, prompter, options) => {
12
12
  const cwd = argv.cwd || process.cwd();
13
- const planPath = (0, path_1.join)(cwd, 'launchql.plan');
13
+ const planPath = (0, path_1.join)(cwd, 'pgpm.plan');
14
14
  if (!(0, fs_1.existsSync)(planPath)) {
15
- log.error(`No launchql.plan found in ${cwd}`);
15
+ log.error(`No pgpm.plan found in ${cwd}`);
16
16
  process.exit(1);
17
17
  }
18
18
  // Get database configuration
@@ -10,9 +10,9 @@ const database_1 = require("../../utils/database");
10
10
  const log = new logger_1.Logger('migrate-status');
11
11
  exports.default = async (argv, prompter, options) => {
12
12
  const cwd = argv.cwd || process.cwd();
13
- const planPath = (0, path_1.join)(cwd, 'launchql.plan');
13
+ const planPath = (0, path_1.join)(cwd, 'pgpm.plan');
14
14
  if (!(0, fs_1.existsSync)(planPath)) {
15
- log.error(`No launchql.plan found in ${cwd}`);
15
+ log.error(`No pgpm.plan found in ${cwd}`);
16
16
  process.exit(1);
17
17
  }
18
18
  // Get database configuration
@@ -33,7 +33,7 @@ export default async (argv, prompter, _options) => {
33
33
  if (!modulePath) {
34
34
  throw new Error('Could not resolve module path');
35
35
  }
36
- const planPath = path.join(modulePath, 'launchql.plan');
36
+ const planPath = path.join(modulePath, 'pgpm.plan');
37
37
  const result = parsePlanFile(planPath);
38
38
  if (result.errors.length > 0) {
39
39
  throw errors.PLAN_PARSE_ERROR({ planPath, errors: result.errors.map(e => e.message).join(', ') });
@@ -8,9 +8,9 @@ import { getTargetDatabase } from '../../utils/database';
8
8
  const log = new Logger('migrate-deps');
9
9
  export default async (argv, prompter, options) => {
10
10
  const cwd = argv.cwd || process.cwd();
11
- const planPath = join(cwd, 'launchql.plan');
11
+ const planPath = join(cwd, 'pgpm.plan');
12
12
  if (!existsSync(planPath)) {
13
- log.error(`No launchql.plan found in ${cwd}`);
13
+ log.error(`No pgpm.plan found in ${cwd}`);
14
14
  process.exit(1);
15
15
  }
16
16
  // Get specific change to analyze
@@ -8,9 +8,9 @@ import { getTargetDatabase } from '../../utils/database';
8
8
  const log = new Logger('migrate-list');
9
9
  export default async (argv, prompter, options) => {
10
10
  const cwd = argv.cwd || process.cwd();
11
- const planPath = join(cwd, 'launchql.plan');
11
+ const planPath = join(cwd, 'pgpm.plan');
12
12
  if (!existsSync(planPath)) {
13
- log.error(`No launchql.plan found in ${cwd}`);
13
+ log.error(`No pgpm.plan found in ${cwd}`);
14
14
  process.exit(1);
15
15
  }
16
16
  // Get database configuration
@@ -8,9 +8,9 @@ import { getTargetDatabase } from '../../utils/database';
8
8
  const log = new Logger('migrate-status');
9
9
  export default async (argv, prompter, options) => {
10
10
  const cwd = argv.cwd || process.cwd();
11
- const planPath = join(cwd, 'launchql.plan');
11
+ const planPath = join(cwd, 'pgpm.plan');
12
12
  if (!existsSync(planPath)) {
13
- log.error(`No launchql.plan found in ${cwd}`);
13
+ log.error(`No pgpm.plan found in ${cwd}`);
14
14
  process.exit(1);
15
15
  }
16
16
  // Get database configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgpm",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "PostgreSQL Package Manager - Database migration and package management CLI",
6
6
  "main": "index.js",
@@ -45,16 +45,16 @@
45
45
  "ts-node": "^10.9.2"
46
46
  },
47
47
  "dependencies": {
48
- "@launchql/core": "^2.14.5",
49
- "@launchql/env": "^2.4.7",
48
+ "@launchql/core": "^2.15.0",
49
+ "@launchql/env": "^2.5.0",
50
50
  "@launchql/logger": "^1.1.4",
51
- "@launchql/templatizer": "^2.4.7",
52
- "@launchql/types": "^2.7.2",
51
+ "@launchql/templatizer": "^2.5.0",
52
+ "@launchql/types": "^2.8.0",
53
53
  "chalk": "^4.1.0",
54
54
  "inquirerer": "^2.0.8",
55
55
  "js-yaml": "^4.1.0",
56
56
  "minimist": "^1.2.8",
57
- "pg-cache": "^1.3.10",
57
+ "pg-cache": "^1.4.0",
58
58
  "pg-env": "^1.1.2",
59
59
  "shelljs": "^0.9.2"
60
60
  },
@@ -70,5 +70,5 @@
70
70
  "pg",
71
71
  "pgsql"
72
72
  ],
73
- "gitHead": "a32146b0033c550907a03faa374e7101f8f15b02"
73
+ "gitHead": "810621bb74659b75a5360634c9cf91bf0996ce19"
74
74
  }