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>
This commit is contained in:
12
scripts/build-test-lib.sh
Executable file
12
scripts/build-test-lib.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user