@altairalabs/packc 0.0.2 → 1.1.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/bin/packc.js CHANGED
@@ -1,8 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const { spawn } = require('child_process');
4
- const path = require('path');
5
- const fs = require('fs');
3
+ import { spawn } from 'node:child_process';
4
+ import path from 'node:path';
5
+ import fs from 'node:fs';
6
+ import { fileURLToPath } from 'node:url';
7
+
8
+ const __filename = fileURLToPath(import.meta.url);
9
+ const __dirname = path.dirname(__filename);
6
10
 
7
11
  const binaryName = process.platform === 'win32' ? 'packc.exe' : 'packc';
8
12
  const binaryPath = path.join(__dirname, '..', binaryName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altairalabs/packc",
3
- "version": "0.0.2",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "description": "PromptKit Pack Compiler - Compile and validate prompt packs for LLM applications",
6
6
  "bin": {
package/postinstall.js CHANGED
@@ -45,7 +45,7 @@ function getPlatformInfo() {
45
45
 
46
46
  function getDownloadUrl(platform, arch) {
47
47
  const archiveExt = platform === 'Windows' ? 'zip' : 'tar.gz';
48
- const archiveName = `PromptKit_v${VERSION}_${platform}_${arch}.${archiveExt}`;
48
+ const archiveName = `PromptKit_${VERSION}_${platform}_${arch}.${archiveExt}`;
49
49
  return `https://github.com/${GITHUB_REPO}/releases/download/v${VERSION}/${archiveName}`;
50
50
  }
51
51