pgpm 2.7.0 → 2.7.1
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/package.js +12 -2
- package/esm/commands/package.js +12 -2
- package/package.json +3 -3
package/commands/package.js
CHANGED
|
@@ -13,11 +13,13 @@ Options:
|
|
|
13
13
|
--plan Include deployment plan (default: true)
|
|
14
14
|
--pretty Pretty-print output (default: true)
|
|
15
15
|
--functionDelimiter <delimiter> Function delimiter (default: $EOFCODE$)
|
|
16
|
+
--outputDiff Export AST diff files when round-trip mismatch detected (default: false)
|
|
16
17
|
--cwd <directory> Working directory (default: current directory)
|
|
17
18
|
|
|
18
19
|
Examples:
|
|
19
20
|
pgpm package Package with defaults
|
|
20
21
|
pgpm package --no-plan Package without plan
|
|
22
|
+
pgpm package --outputDiff Package and export AST diff files if mismatch detected
|
|
21
23
|
`;
|
|
22
24
|
exports.default = async (argv, prompter, _options) => {
|
|
23
25
|
// Show usage if explicitly requested
|
|
@@ -46,9 +48,16 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
46
48
|
default: '$EOFCODE$',
|
|
47
49
|
useDefault: true,
|
|
48
50
|
required: false
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: 'confirm',
|
|
54
|
+
name: 'outputDiff',
|
|
55
|
+
default: false,
|
|
56
|
+
useDefault: true,
|
|
57
|
+
required: false
|
|
49
58
|
}
|
|
50
59
|
];
|
|
51
|
-
let { cwd, plan, pretty, functionDelimiter } = await prompter.prompt(argv, questions);
|
|
60
|
+
let { cwd, plan, pretty, functionDelimiter, outputDiff } = await prompter.prompt(argv, questions);
|
|
52
61
|
const project = new core_1.PgpmPackage(cwd);
|
|
53
62
|
project.ensureModule();
|
|
54
63
|
const info = project.getModuleInfo();
|
|
@@ -59,7 +68,8 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
59
68
|
usePlan: plan,
|
|
60
69
|
packageDir: project.modulePath,
|
|
61
70
|
pretty,
|
|
62
|
-
functionDelimiter
|
|
71
|
+
functionDelimiter,
|
|
72
|
+
outputDiff
|
|
63
73
|
});
|
|
64
74
|
return argv;
|
|
65
75
|
};
|
package/esm/commands/package.js
CHANGED
|
@@ -11,11 +11,13 @@ Options:
|
|
|
11
11
|
--plan Include deployment plan (default: true)
|
|
12
12
|
--pretty Pretty-print output (default: true)
|
|
13
13
|
--functionDelimiter <delimiter> Function delimiter (default: $EOFCODE$)
|
|
14
|
+
--outputDiff Export AST diff files when round-trip mismatch detected (default: false)
|
|
14
15
|
--cwd <directory> Working directory (default: current directory)
|
|
15
16
|
|
|
16
17
|
Examples:
|
|
17
18
|
pgpm package Package with defaults
|
|
18
19
|
pgpm package --no-plan Package without plan
|
|
20
|
+
pgpm package --outputDiff Package and export AST diff files if mismatch detected
|
|
19
21
|
`;
|
|
20
22
|
export default async (argv, prompter, _options) => {
|
|
21
23
|
// Show usage if explicitly requested
|
|
@@ -44,9 +46,16 @@ export default async (argv, prompter, _options) => {
|
|
|
44
46
|
default: '$EOFCODE$',
|
|
45
47
|
useDefault: true,
|
|
46
48
|
required: false
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
type: 'confirm',
|
|
52
|
+
name: 'outputDiff',
|
|
53
|
+
default: false,
|
|
54
|
+
useDefault: true,
|
|
55
|
+
required: false
|
|
47
56
|
}
|
|
48
57
|
];
|
|
49
|
-
let { cwd, plan, pretty, functionDelimiter } = await prompter.prompt(argv, questions);
|
|
58
|
+
let { cwd, plan, pretty, functionDelimiter, outputDiff } = await prompter.prompt(argv, questions);
|
|
50
59
|
const project = new PgpmPackage(cwd);
|
|
51
60
|
project.ensureModule();
|
|
52
61
|
const info = project.getModuleInfo();
|
|
@@ -57,7 +66,8 @@ export default async (argv, prompter, _options) => {
|
|
|
57
66
|
usePlan: plan,
|
|
58
67
|
packageDir: project.modulePath,
|
|
59
68
|
pretty,
|
|
60
|
-
functionDelimiter
|
|
69
|
+
functionDelimiter,
|
|
70
|
+
outputDiff
|
|
61
71
|
});
|
|
62
72
|
return argv;
|
|
63
73
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgpm",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PostgreSQL Package Manager - Database migration and package management CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@inquirerer/utils": "^3.1.1",
|
|
50
|
-
"@pgpmjs/core": "^4.5.
|
|
50
|
+
"@pgpmjs/core": "^4.5.1",
|
|
51
51
|
"@pgpmjs/env": "^2.8.11",
|
|
52
52
|
"@pgpmjs/logger": "^1.3.5",
|
|
53
53
|
"@pgpmjs/types": "^2.12.8",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"pg",
|
|
76
76
|
"pgsql"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "6883e3b93da28078483bc6aa25862613ef4405b2"
|
|
79
79
|
}
|