@sysnee/pgs 0.1.4-rc2 → 0.1.4-rc3

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.
Files changed (2) hide show
  1. package/manager.js +4 -1
  2. package/package.json +1 -1
package/manager.js CHANGED
@@ -9,6 +9,9 @@ import { execSync } from 'child_process';
9
9
  import { fileURLToPath } from 'url';
10
10
  import { dirname } from 'path';
11
11
 
12
+ import packageJson from './package.json' with { type: 'json' };
13
+
14
+
12
15
  const __filename = fileURLToPath(import.meta.url);
13
16
  const __dirname = dirname(__filename);
14
17
 
@@ -397,7 +400,7 @@ const program = new Command();
397
400
  program
398
401
  .name('postgres-manager')
399
402
  .description('Manage PostgreSQL tenant instances')
400
- .version(JSON.parse(readFileSync('package.json', 'utf8')).version);
403
+ .version(packageJson.version);
401
404
 
402
405
  program
403
406
  .command('setup')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sysnee/pgs",
3
- "version": "0.1.4-rc2",
3
+ "version": "0.1.4-rc3",
4
4
  "description": "Dynamic PostgreSQL service instance manager",
5
5
  "type": "module",
6
6
  "bin": {