portkeeper 1.2.1 → 1.2.3

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/dist/cli/index.js CHANGED
@@ -16,7 +16,7 @@ const program = new Command();
16
16
  program
17
17
  .name('portman')
18
18
  .description('Port Keeper - Manage your local development ports')
19
- .version('1.1.2');
19
+ .version('1.2.3');
20
20
  program.addCommand(checkCommand);
21
21
  program.addCommand(reserveCommand);
22
22
  program.addCommand(listCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portkeeper",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "A comprehensive port management tool for developers with CLI and GUI interfaces",
5
5
  "main": "dist/cli/index.js",
6
6
  "type": "module",
@@ -24,6 +24,7 @@
24
24
  "build": "npm run build:cli && npm run build:gui",
25
25
  "build:npm": "npm run build:cli && npm run build:gui",
26
26
  "prepublishOnly": "npm run build:npm",
27
+ "postinstall": "node scripts/postinstall.cjs",
27
28
  "fix:electron": "npm rebuild better-sqlite3 --runtime=electron --target=28.0.0 --dist-url=https://electronjs.org/headers --abi=119",
28
29
  "fix:node": "npm rebuild better-sqlite3",
29
30
  "build:cli": "tsc -p tsconfig.cli.json",
@@ -8,7 +8,7 @@ console.log('🔧 Setting up portkeeper...');
8
8
 
9
9
  try {
10
10
  // Get the installation directory - for npm install, we need the actual package directory
11
- const installDir = process.env.INIT_CWD || __dirname.replace(/\/scripts$/, '');
11
+ const installDir = path.resolve(__dirname, '..');
12
12
  console.log('Installation directory:', installDir);
13
13
 
14
14
  // Always rebuild for Node.js first