pgpm 5.12.0 → 5.13.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.
|
@@ -7,8 +7,9 @@ import { resolvePackageAlias } from './package-alias';
|
|
|
7
7
|
*/
|
|
8
8
|
export async function selectPackage(argv, prompter, cwd, operationName, log) {
|
|
9
9
|
const pkg = new PgpmPackage(cwd);
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
// The module map includes both control-file modules and apply-spec proxy
|
|
11
|
+
// modules (pgpm.apply.json), so all deployable names are offered.
|
|
12
|
+
const moduleNames = Object.keys(pkg.getModuleMap()).sort();
|
|
12
13
|
// Check if any modules exist
|
|
13
14
|
if (!moduleNames.length) {
|
|
14
15
|
const errorMsg = 'No modules found in the specified directory.';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgpm",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.13.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PostgreSQL Package Manager - Database migration and package management CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@inquirerer/utils": "^3.3.9",
|
|
49
|
-
"@pgpmjs/core": "^7.
|
|
49
|
+
"@pgpmjs/core": "^7.14.0",
|
|
50
50
|
"@pgpmjs/env": "^2.37.0",
|
|
51
|
-
"@pgpmjs/export": "^1.12.
|
|
51
|
+
"@pgpmjs/export": "^1.12.1",
|
|
52
52
|
"@pgpmjs/logger": "^2.22.0",
|
|
53
|
-
"@pgpmjs/slice": "^0.
|
|
53
|
+
"@pgpmjs/slice": "^0.10.0",
|
|
54
54
|
"@pgpmjs/types": "^2.45.0",
|
|
55
55
|
"@pgsql/quotes": "^18.1.0",
|
|
56
56
|
"appstash": "^0.7.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"pg",
|
|
78
78
|
"pgsql"
|
|
79
79
|
],
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "d85911699e8a50a9fdfeb7506195442525c1f238"
|
|
81
81
|
}
|
package/utils/module-utils.js
CHANGED
|
@@ -10,8 +10,9 @@ const package_alias_1 = require("./package-alias");
|
|
|
10
10
|
*/
|
|
11
11
|
async function selectPackage(argv, prompter, cwd, operationName, log) {
|
|
12
12
|
const pkg = new core_1.PgpmPackage(cwd);
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// The module map includes both control-file modules and apply-spec proxy
|
|
14
|
+
// modules (pgpm.apply.json), so all deployable names are offered.
|
|
15
|
+
const moduleNames = Object.keys(pkg.getModuleMap()).sort();
|
|
15
16
|
// Check if any modules exist
|
|
16
17
|
if (!moduleNames.length) {
|
|
17
18
|
const errorMsg = 'No modules found in the specified directory.';
|