promptfoo 0.112.0 → 0.112.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/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "promptfoo",
3
3
  "description": "LLM eval & testing toolkit",
4
4
  "author": "Ian Webster",
5
- "version": "0.112.0",
5
+ "version": "0.112.1",
6
6
  "license": "MIT",
7
7
  "type": "commonjs",
8
8
  "repository": {
@@ -40,7 +40,8 @@
40
40
  "build:app": "npm run build --prefix src/app",
41
41
  "build:clean": "shx rm -rf dist",
42
42
  "build:watch": "tsc --watch",
43
- "build": "tsc && shx cp src/*.html dist/src && shx cp src/python/wrapper.py dist/src/python && shx mkdir -p dist/src/golang && shx cp src/golang/wrapper.go dist/src/golang && shx rm -rf dist/drizzle && shx cp -r drizzle dist/drizzle && npm run build:app && shx chmod +x dist/src/main.js",
43
+ "build:replace-keys": "node scripts/replace-keys.js",
44
+ "build": "tsc && shx cp src/*.html dist/src && shx cp src/python/wrapper.py dist/src/python && shx mkdir -p dist/src/golang && shx cp src/golang/wrapper.go dist/src/golang && shx rm -rf dist/drizzle && shx cp -r drizzle dist/drizzle && npm run build:app && npm run build:replace-keys && shx chmod +x dist/src/main.js",
44
45
  "citation:generate": "ts-node scripts/generateCitation.ts",
45
46
  "db:generate": "npx drizzle-kit generate",
46
47
  "db:migrate": "npx tsx src/migrate.ts",
@@ -58,7 +59,7 @@
58
59
  "local": "ts-node --cwdMode --transpileOnly src/main.ts",
59
60
  "preversion": "command -v gh >/dev/null 2>&1 || (echo \"Error: GitHub CLI required.\" && exit 1) && [ \"$(git rev-parse --abbrev-ref HEAD)\" = \"main\" ] || (echo \"Error: Must be on main branch to version\" && exit 1) && git pull origin main && git checkout -b \"chore/bump-version-$(date +%s)\"",
60
61
  "postversion": "npm run citation:generate && git add CITATION.cff && git commit --amend --no-edit && gh pr create --repo promptfoo/promptfoo --title \"chore: bump version $npm_package_version\" --body \"\"",
61
- "prepublishOnly": "npm run build:clean && npm run build",
62
+ "prepublishOnly": "node -e \"if (!process.env.PROMPTFOO_POSTHOG_KEY) { console.error('Error: PROMPTFOO_POSTHOG_KEY must be set'); process.exit(1); }\" && npm run build:clean && npm run build",
62
63
  "test:app": "npm run test --prefix src/app",
63
64
  "test:integration": "jest --config jest.integration.config.ts integration",
64
65
  "test:watch": "jest --watch",