Files
Converge/scripts/build-test-lib.sh
Chris Olson d5c77543e8 Initial commit: Converge portfolio rationalization app
Next.js app for mapping a customer's competitive tool landscape onto our
portfolio and building the consolidation business case: assessment
workbench, customer report and Word export, product catalog, competitive
knowledge base, dossier import, shareable landscape questionnaires with a
review inbox, tool-footprint and business-unit value analysis, and an
implementation timeline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 11:48:42 -04:00

13 lines
541 B
Bash
Executable File

#!/usr/bin/env bash
# Compiles the pure-logic libs so tests can exercise the real source under Node.
set -euo pipefail
cd "$(dirname "$0")/.."
rm -rf .test-build
npx --yes tsc src/lib/dossier.ts src/lib/kb.ts src/lib/scoring.ts src/lib/client.ts \
--outDir .test-build --target ES2022 --module esnext \
--moduleResolution bundler --skipLibCheck
# tsc emits extensionless relative imports; Node ESM needs the .js suffix.
for f in .test-build/*.js; do
perl -pi -e 's{(from\s+")(\./[^"]+?)(")}{$1.$2.".js".$3}ge unless /\.js"/' "$f"
done