pgpm 4.17.0 → 4.18.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.
@@ -254,7 +254,8 @@ async function handleWorkspaceInit(argv, prompter, ctx) {
254
254
  if (!motd.endsWith('\n')) {
255
255
  process.stdout.write('\n');
256
256
  }
257
- process.stdout.write(`\n✨ Enjoy!\n\ncd ./${dirName}\n`);
257
+ const relPath = path_1.default.relative(process.cwd(), targetPath);
258
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${relPath}\n`);
258
259
  return { ...argv, ...answers, cwd: targetPath };
259
260
  }
260
261
  function resolveWorkspaceTemplateRepo(options) {
@@ -501,6 +502,7 @@ async function handleModuleInit(argv, prompter, ctx, wasExplicitModuleRequest =
501
502
  if (!motd.endsWith('\n')) {
502
503
  process.stdout.write('\n');
503
504
  }
504
- process.stdout.write(`\n✨ Enjoy!\n\ncd ./${modName}\n`);
505
+ const relPath = path_1.default.relative(process.cwd(), modulePath);
506
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${relPath}\n`);
505
507
  return { ...argv, ...answers };
506
508
  }
@@ -68,6 +68,7 @@ async function runWorkspaceSetup(argv, prompter) {
68
68
  if (!motd.endsWith('\n')) {
69
69
  process.stdout.write('\n');
70
70
  }
71
- process.stdout.write(`\n✨ Enjoy!\n\ncd ./${dirName}\n`);
71
+ const relPath = path_1.default.relative(process.cwd(), targetPath);
72
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${relPath}\n`);
72
73
  return { ...argv, ...answers, cwd: targetPath };
73
74
  }
@@ -247,7 +247,8 @@ async function handleWorkspaceInit(argv, prompter, ctx) {
247
247
  if (!motd.endsWith('\n')) {
248
248
  process.stdout.write('\n');
249
249
  }
250
- process.stdout.write(`\n✨ Enjoy!\n\ncd ./${dirName}\n`);
250
+ const relPath = path.relative(process.cwd(), targetPath);
251
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${relPath}\n`);
251
252
  return { ...argv, ...answers, cwd: targetPath };
252
253
  }
253
254
  function resolveWorkspaceTemplateRepo(options) {
@@ -494,6 +495,7 @@ async function handleModuleInit(argv, prompter, ctx, wasExplicitModuleRequest =
494
495
  if (!motd.endsWith('\n')) {
495
496
  process.stdout.write('\n');
496
497
  }
497
- process.stdout.write(`\n✨ Enjoy!\n\ncd ./${modName}\n`);
498
+ const relPath = path.relative(process.cwd(), modulePath);
499
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${relPath}\n`);
498
500
  return { ...argv, ...answers };
499
501
  }
@@ -62,6 +62,7 @@ export default async function runWorkspaceSetup(argv, prompter) {
62
62
  if (!motd.endsWith('\n')) {
63
63
  process.stdout.write('\n');
64
64
  }
65
- process.stdout.write(`\n✨ Enjoy!\n\ncd ./${dirName}\n`);
65
+ const relPath = path.relative(process.cwd(), targetPath);
66
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${relPath}\n`);
66
67
  return { ...argv, ...answers, cwd: targetPath };
67
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgpm",
3
- "version": "4.17.0",
3
+ "version": "4.18.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",
@@ -48,7 +48,7 @@
48
48
  "@inquirerer/utils": "^3.3.5",
49
49
  "@pgpmjs/core": "^6.12.4",
50
50
  "@pgpmjs/env": "^2.18.0",
51
- "@pgpmjs/export": "^0.5.0",
51
+ "@pgpmjs/export": "^0.5.1",
52
52
  "@pgpmjs/logger": "^2.6.0",
53
53
  "@pgpmjs/types": "^2.22.0",
54
54
  "@pgsql/quotes": "^17.1.0",
@@ -76,5 +76,5 @@
76
76
  "pg",
77
77
  "pgsql"
78
78
  ],
79
- "gitHead": "4ec54068fedd13e6145808b8059121f4a1b3891d"
79
+ "gitHead": "3f86c5a243633bb086f83866fdfb790ec45558bd"
80
80
  }