pgpm 5.0.3 → 5.1.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.
@@ -9,7 +9,11 @@ Install Command:
9
9
 
10
10
  pgpm install [package]...
11
11
 
12
- Install pgpm modules into the workspace extensions/ directory.
12
+ Install pgpm modules into the workspace extensions directory (default: extensions/).
13
+
14
+ The install directory is configurable: --extensions-dir wins, then the
15
+ PGPM_EXTENSIONS_DIR env var, then the \`extensionsDir\` field in the workspace
16
+ pgpm.json, then the \`extensions\` default.
13
17
 
14
18
  Inside a module, installing without arguments installs any missing modules
15
19
  listed in the module's .control file, and explicit installs are recorded in
@@ -26,6 +30,7 @@ Options:
26
30
  --help, -h Show this help message
27
31
  --cwd <directory> Working directory (default: current directory)
28
32
  --force Reinstall modules even if already installed
33
+ --extensions-dir <dir> Directory (relative to workspace root) to install into (default: extensions)
29
34
  -W, --workspace-root Install at the workspace root (pgpm.json dependencies)
30
35
 
31
36
  Examples:
@@ -35,6 +40,8 @@ Examples:
35
40
  pgpm install @pgpm/base32 Install single package
36
41
  pgpm install @pgpm/base32@latest Install the latest published version
37
42
  pgpm install @pgpm/base32 @pgpm/utils Install multiple packages
43
+ pgpm install --extensions-dir extensions-test @pgpm/base32
44
+ Install into extensions-test/ instead of extensions/
38
45
  `;
39
46
  exports.default = async (argv, prompter, _options) => {
40
47
  // Show usage if explicitly requested
@@ -43,7 +50,8 @@ exports.default = async (argv, prompter, _options) => {
43
50
  process.exit(0);
44
51
  }
45
52
  const { cwd = process.cwd() } = argv;
46
- const project = new core_1.PgpmPackage(cwd);
53
+ const extensionsDir = (argv['extensions-dir'] ?? argv.extensionsDir);
54
+ const project = new core_1.PgpmPackage(cwd, { extensionsDir });
47
55
  const force = Boolean(argv.force);
48
56
  const workspaceRoot = Boolean(argv.W || argv['workspace-root'] || argv.workspaceRoot);
49
57
  if (!project.isInModule() && !project.isInWorkspace()) {
@@ -7,7 +7,11 @@ Install Command:
7
7
 
8
8
  pgpm install [package]...
9
9
 
10
- Install pgpm modules into the workspace extensions/ directory.
10
+ Install pgpm modules into the workspace extensions directory (default: extensions/).
11
+
12
+ The install directory is configurable: --extensions-dir wins, then the
13
+ PGPM_EXTENSIONS_DIR env var, then the \`extensionsDir\` field in the workspace
14
+ pgpm.json, then the \`extensions\` default.
11
15
 
12
16
  Inside a module, installing without arguments installs any missing modules
13
17
  listed in the module's .control file, and explicit installs are recorded in
@@ -24,6 +28,7 @@ Options:
24
28
  --help, -h Show this help message
25
29
  --cwd <directory> Working directory (default: current directory)
26
30
  --force Reinstall modules even if already installed
31
+ --extensions-dir <dir> Directory (relative to workspace root) to install into (default: extensions)
27
32
  -W, --workspace-root Install at the workspace root (pgpm.json dependencies)
28
33
 
29
34
  Examples:
@@ -33,6 +38,8 @@ Examples:
33
38
  pgpm install @pgpm/base32 Install single package
34
39
  pgpm install @pgpm/base32@latest Install the latest published version
35
40
  pgpm install @pgpm/base32 @pgpm/utils Install multiple packages
41
+ pgpm install --extensions-dir extensions-test @pgpm/base32
42
+ Install into extensions-test/ instead of extensions/
36
43
  `;
37
44
  export default async (argv, prompter, _options) => {
38
45
  // Show usage if explicitly requested
@@ -41,7 +48,8 @@ export default async (argv, prompter, _options) => {
41
48
  process.exit(0);
42
49
  }
43
50
  const { cwd = process.cwd() } = argv;
44
- const project = new PgpmPackage(cwd);
51
+ const extensionsDir = (argv['extensions-dir'] ?? argv.extensionsDir);
52
+ const project = new PgpmPackage(cwd, { extensionsDir });
45
53
  const force = Boolean(argv.force);
46
54
  const workspaceRoot = Boolean(argv.W || argv['workspace-root'] || argv.workspaceRoot);
47
55
  if (!project.isInModule() && !project.isInWorkspace()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgpm",
3
- "version": "5.0.3",
3
+ "version": "5.1.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,18 +46,18 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@inquirerer/utils": "^3.3.9",
49
- "@pgpmjs/core": "^7.2.1",
50
- "@pgpmjs/env": "^2.28.2",
51
- "@pgpmjs/export": "^1.1.0",
49
+ "@pgpmjs/core": "^7.3.0",
50
+ "@pgpmjs/env": "^2.29.0",
51
+ "@pgpmjs/export": "^1.2.0",
52
52
  "@pgpmjs/logger": "^2.14.0",
53
- "@pgpmjs/types": "^2.35.1",
53
+ "@pgpmjs/types": "^2.36.0",
54
54
  "@pgsql/quotes": "^18.1.0",
55
55
  "appstash": "^0.7.0",
56
56
  "find-and-require-package-json": "^0.9.1",
57
57
  "genomic": "^5.6.2",
58
58
  "inquirerer": "^4.9.1",
59
59
  "js-yaml": "^4.1.0",
60
- "pg-cache": "^3.15.2",
60
+ "pg-cache": "^3.15.3",
61
61
  "pg-env": "^1.18.1",
62
62
  "pgsql-deparser": "^18.1.1",
63
63
  "semver": "^7.8.1",
@@ -76,5 +76,5 @@
76
76
  "pg",
77
77
  "pgsql"
78
78
  ],
79
- "gitHead": "51c3e15e9d509154d0a8102bb18f6e39cfa4e0c6"
79
+ "gitHead": "39db6d576bce7bc1de8123849f237b1695779d88"
80
80
  }